Add GOCACHE
to env for Golang 1.12 compilation error
#7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello @viovanov and team,
Ran into some issues with the packaging script for the BOSH release when we were deploying things with BOSH.
Golang 1.12 seems to want either
GOCACHE
orHOME
set in the environment where a go program is being compiled in.HOME
appears to not be set always for BOSH compilation VMs so we are mitigating this by settingGOCACHE
Without this set, we see the following error when deploying Eirini via BOSH:
This can be mitigated as well by using the BOSH vendor package for golang which sets this for you in its compilation and runtime environments it provides: https://github.com/bosh-packages/golang-release/blob/d4ac25f9683908113db4d007a664f4f36a3b1b34/src/1.12/compile.env.linux#L8
Thank you!
Jwal