diff options
Diffstat (limited to 'pkgs/development/go-packages/generic/default.nix')
-rw-r--r-- | pkgs/development/go-packages/generic/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/go-packages/generic/default.nix b/pkgs/development/go-packages/generic/default.nix index 643c1955d2b0b..56c8ceeca15fd 100644 --- a/pkgs/development/go-packages/generic/default.nix +++ b/pkgs/development/go-packages/generic/default.nix @@ -233,6 +233,8 @@ let doCheck = args.doCheck or false; 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" |