3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #49346 from Mic92/gocache

buildGoPackage: re-enable GOCACHE
This commit is contained in:
Jörg Thalheim 2018-10-28 16:02:40 +00:00 committed by GitHub
commit ee738264d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,6 +103,7 @@ go.stdenv.mkDerivation (
'') + ''
export GOPATH=$NIX_BUILD_TOP/go:$GOPATH
export GOCACHE=$TMPDIR/go-cache
runHook postConfigure
'';
@ -193,9 +194,6 @@ go.stdenv.mkDerivation (
find $bin/bin -type f -exec ${removeExpr removeReferences} '{}' + || true
'';
# Disable go cache, which is not reused in nix anyway
GOCACHE = "off";
shellHook = ''
d=$(mktemp -d "--suffix=-$name")
'' + toString (map (dep: ''