diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-07-24 10:52:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-24 10:52:57 +0100 |
commit | 981a1ce4db0262dd54a19d0ca24e4f259a6bb863 (patch) | |
tree | 8eb0858685bf6d4b09f5e94ace4b95fd0f108afb /pkgs/development/go-modules | |
parent | 21966e13d2d72b91ce73a2f3f03faf62d8a9e59f (diff) | |
parent | 64e6cc1a1d5fc565f2f503b7b6347f6641ff2610 (diff) |
Merge pull request #182665 from Mic92/go-modules
go-modules: don't set trimpath for tests
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r-- | pkgs/development/go-modules/generic/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 837f72a413db..0ecdc9acc39f 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -249,6 +249,8 @@ let doCheck = args.doCheck or true; checkPhase = args.checkPhase or '' runHook preCheck + # We do not set trimpath for tests, in case they reference test assets + export GOFLAGS=''${GOFLAGS//-trimpath/} for pkg in $(getGoDirs test); do buildGoDir test "$pkg" |