docker: export GOCACHE for all platforms

This commit is contained in:
Wael M. Nasreddine 2019-03-10 13:54:19 -07:00
parent 9b3da9ef64
commit eee09b103c
No known key found for this signature in database
GPG key ID: FD437548E0BF0F5F

View file

@ -94,13 +94,14 @@ rec {
dontStrip = true;
buildPhase = (optionalString (stdenv.isLinux) ''
buildPhase = ''
export GOCACHE="$TMPDIR/go-cache"
'' + (optionalString (stdenv.isLinux) ''
# build engine
cd ./components/engine
export AUTO_GOPATH=1
export DOCKER_GITCOMMIT="${rev}"
export VERSION="${version}"
export GOCACHE="$TMPDIR/go-cache"
./hack/make.sh dynbinary
cd -
'') + ''