summaryrefslogtreecommitdiffstats
path: root/pkgs/development/go-modules
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2018-02-24 01:47:10 +0000
committerJörg Thalheim <joerg@thalheim.io>2018-02-24 01:57:16 +0000
commitaafd5a63eaa3c37294ecbb8ab184fc85be1b7709 (patch)
tree2aa972b7a09261a22e3b1ac172a6ac1aab7ec2f2 /pkgs/development/go-modules
parente9fdcc9662557a57241150967ff5b9676d88d673 (diff)
buildGoPackage: disable go 1.10 cache
This disables annoying error messages that the go cache in /homeless-shelter cannot be created.
Diffstat (limited to 'pkgs/development/go-modules')
-rw-r--r--pkgs/development/go-modules/generic/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix
index 6de85495bee3..a6d83fc770c7 100644
--- a/pkgs/development/go-modules/generic/default.nix
+++ b/pkgs/development/go-modules/generic/default.nix
@@ -196,6 +196,9 @@ 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: ''