From 30586a108d489bd98fb240bcf48e8f3620c49176 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 20 Dec 2019 14:30:36 +0000 Subject: fix(buildGo): Use builder directory as fake $HOME It turns out that the `go` tool writes a bunch of stuff into $HOME, or rather, tries to - Nixery doesn't let it. --- overrides/buildGo/external/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'overrides') diff --git a/overrides/buildGo/external/default.nix b/overrides/buildGo/external/default.nix index 6e1dce1114..48f678688e 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' | \ -- cgit 1.4.1