Skip to content

Commit

Permalink
Add GOCACHE env variable in go package
Browse files Browse the repository at this point in the history
Seems to be required in go1.12, so make it explicit.
Normally it is based on $HOME cache dir, but $HOME is not always defined.
  • Loading branch information
dpb587 committed Feb 27, 2019
1 parent 382fde1 commit 6d148c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/go/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ tar -xzf go/*.tar.gz -C "$BOSH_INSTALL_TARGET" --strip-components=1
mkdir "$BOSH_INSTALL_TARGET/bosh"

cat <<"EOF" > "$BOSH_INSTALL_TARGET/bosh/env"
export GOROOT=/var/vcap/packages/go
export GOCACHE=/var/vcap/data/go/cache
export GOPATH="$PWD"
export GOROOT=/var/vcap/packages/go
export PATH="$GOPATH/bin:$GOROOT/bin:$PATH"
EOF

0 comments on commit 6d148c0

Please sign in to comment.