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:
parent
b39fc3a0bc
commit
09435db08a
|
@ -13,9 +13,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ go ];
|
nativeBuildInputs = [ go ];
|
||||||
|
|
||||||
GOCACHE="$TMPDIR/go-cache";
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
export GOCACHE="$TMPDIR/go-cache"
|
||||||
mkdir -p Godeps/_workspace/src/github.com/google/
|
mkdir -p Godeps/_workspace/src/github.com/google/
|
||||||
ln -s $(pwd) Godeps/_workspace/src/github.com/google/cadvisor
|
ln -s $(pwd) Godeps/_workspace/src/github.com/google/cadvisor
|
||||||
GOPATH=$(pwd)/Godeps/_workspace go build -v -o cadvisor github.com/google/cadvisor
|
GOPATH=$(pwd)/Godeps/_workspace go build -v -o cadvisor github.com/google/cadvisor
|
||||||
|
|
Loading…
Reference in New Issue