Best practice for provisioning the mod tool for gomodUpdateImportPaths on self-hosted (non-containerbase) Renovate? #44246
Unanswered
aglees
asked this question in
Request Help
Replies: 2 comments 1 reply
-
|
Re 1, I'd happened to see renovatebot/base-image#193 yesterday which talks about the same issue - I think that preinstalling Re 2 that's fair - and something I've thought about in the past but never got around to solving. Given we have the
That'd mean that it'd definitely be a pinned version, and folks who wish to explicitly change the version can continue using |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Related: #41817 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate CLI
Which platform you running Renovate on?
GitHub Enterprise Server
Which version of Renovate are you using?
v43
Please tell us more about your question or problem
We self-host Renovate (v43) as a global npm install on our own image (not renovate/renovate, so effectively binarySource=global, non-containerbase) and recently enabled gomodUpdateImportPaths (with gomodTidy) so Go major bumps come through with import paths rewritten rather than as incomplete PRs.
From reading gomod/artifacts.ts and a real run, we see Renovate unconditionally prepends go install github.com/marwan-at-work/mod/cmd/mod@ then mod upgrade …. It sets GOPATH but not GOBIN, so the install targets our image's inherited GOBIN (/usr/local/bin, root-owned); as a non-root runner that failed with permission denied. We fixed it by pointing GOBIN at a writable dir that's also on PATH.
A few best-practice questions:
(We've read the Go-modules docs and #20125 / #20996 / #19601 — those cover feature behaviour rather than self-hosted provisioning, hence this question.)
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions