about summary refs log tree commit diff
path: root/overrides/buildGo
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-20T14·30+0000
committerVincent Ambo <tazjin@google.com>2019-12-20T14·30+0000
commit30586a108d489bd98fb240bcf48e8f3620c49176 (patch)
treee82d0487bea1ac6eeb25bf6aa8a1b4bf7abb2f35 /overrides/buildGo
parent2782a69a726d4a5b1458f65d494e39c7bc3f8214 (diff)
fix(buildGo): Use builder directory as fake $HOME r/215
It turns out that the `go` tool writes a bunch of stuff into $HOME, or
rather, tries to - Nixery doesn't let it.
Diffstat (limited to 'overrides/buildGo')
-rw-r--r--overrides/buildGo/external/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/overrides/buildGo/external/default.nix b/overrides/buildGo/external/default.nix
index 6e1dce11140b..48f678688eec 100644
--- a/overrides/buildGo/external/default.nix
+++ b/overrides/buildGo/external/default.nix
@@ -23,6 +23,7 @@ let
   # into a file that can be used to filter them out when processing
   # dependencies.
   stdlibPackages = runCommand "stdlib-pkgs.json" {} ''
+    export HOME=$PWD
     export GOPATH=/dev/null
     ${go}/bin/go list all | \
       ${ripgrep}/bin/rg -v 'vendor' | \