cadvisor: export GOCACHE in the buildPhase

TMPDIR, in `GOCACHE = "$TMPDIR";`, will not be intepreted  when it's set
outside of a phase.
This commit is contained in:
Wael M. Nasreddine 2019-03-10 14:05:13 -07:00
parent b39fc3a0bc
commit 09435db08a
No known key found for this signature in database
GPG key ID: FD437548E0BF0F5F

View file

@ -13,9 +13,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ go ];
GOCACHE="$TMPDIR/go-cache";
buildPhase = ''
export GOCACHE="$TMPDIR/go-cache"
mkdir -p Godeps/_workspace/src/github.com/google/
ln -s $(pwd) Godeps/_workspace/src/github.com/google/cadvisor
GOPATH=$(pwd)/Godeps/_workspace go build -v -o cadvisor github.com/google/cadvisor