Open proton-ab opened 4 years ago
Looks like we do not have any awareness of GOCACHE
today. BTW if you're running self-hosted and enable trustLevel=high
then Renovate will transparently pass through the entire env to child processes. But otherwise we should make GOCACHE
behavior awareness similar to how we do for other package managers.
I'm seeing this in GitHub actions as well. You can see a few cases of me flailing embarrassingly linked back to this issue (using a pinned, latest renovate image with high trust). I tried a few things, all of which failed:
What else should I try here?
For reference, direct links to some of the actions runs:
https://github.com/whilp/world/actions/runs/262881062
https://github.com/whilp/world/actions/runs/262867258
And a PR produced by one of those runs:
What Renovate type are you using?
Self-hosted, Gitea, 19.236.8
Describe the bug
When renovate executes
go get
command to updatego.mod
file, it does not setGOCACHE
environment, in result cache is written inside container. This makes it impossible to run container as different user (--user 1001:1001
) because in such casego get
will attempt to write to/.cache
($HOME does not exist for user without passwd entry).Did you see anything helpful in debug logs?
To Reproduce
No repro repo is given as this issue is internal to self-hosted instances in an edge case where docker container is run as different user.
Additional context
I'd expect Renovate to handle cache for Go the same way it handles cache for other package managers.