Open rarkins opened 4 months ago
This GOPATH override doesn't seem to take effect.
A new renovate/renovate container:
ubuntu@8ca7c127dcb9:/usr/src/app$ du -sh /go/*
4.0K /go/bin
4.0K /go/pkg
4.0K /go/src
ubuntu@8ca7c127dc
After running on a repo where Go PRs are created:
ubuntu@344ee60b6846:/usr/src/app$ du -sh /go/*
4.0K /go/bin
498M /go/pkg
4.0K /go/src
Interesting that we wire it in already - up until now I've been explicitly setting GOPATH
in my container setup to override it to the cacheDir
- it looks like we should be wiring that variable in correctly 🤔
this is overriding the renovate env, it will be fixed in containerbase v11
@viceice where should we expect Go cache to be written currently (containerbase v11) or in v12?
in v11 it should be /opt/containerbase/home/go
which is symlinked to /home/ubuntu/go
. but renovate always set GOPATH
so it should now follow that.
v12 changed /opt/containerbase/home/go
to /tmp/containerbase/cache/go
we dropped default env GOPATH
in v11
Describe the proposed change(s).
Currently Containerbase defaults to
/go
forGOPATH
, this means that installed Go modules accumulate there. Instead, we should be aiming for all managers to usecacheDir
.