gitlab-shell: export GOCACHE in the installPhase

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 13:56:12 -07:00
parent eee09b103c
commit 483d823ec4

View File

@@ -13,11 +13,11 @@ stdenv.mkDerivation rec {
buildInputs = [ ruby bundler go ];
GOCACHE="$TMPDIR/go-cache";
patches = [ ./remove-hardcoded-locations.patch ];
installPhase = ''
export GOCACHE="$TMPDIR/go-cache"
ruby bin/compile
mkdir -p $out/
cp -R . $out/