Unable to update and commit go.sum files due to private repo dependency #24605
Unanswered
christing19
asked this question in
Request Help
Replies: 2 comments
-
Any suggestions? 🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
-
read the docs? https://docs.renovatebot.com/getting-started/private-packages/#example-for-gomod |
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
-
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us what version of Renovate you run.
36.42.0
If you're self-hosting Renovate, select which platform you are using.
gitlab.com
Was this something which used to work for you, and then stopped?
I never saw this working
Wanted end result.
Hello, I would like to seek some help from the community with respect to Renovate configurations for a Go repository.
In the current
go.mod
file, we have a dependency that comes from a private repo in a nested subgroup within Gitlab but currently Gitlab’s subgroup feature breaks the functionality of being able to rungo get <private repo>
. This is an issue that GitLab is aware of.As such, in our CI pipelines, we have a script to first
git clone
this private repo, and then areplace
command in thego.mod
redirects the dependency path to a local path. Because of this private repo dependency and its correspondingreplace
statement, Renovate is showing an "update artifact problem" and as such is unable to update and commit thego.sum
file to the update MRs, which causes the lint/unit test jobs to fail in our CI pipelines.Error:
The desired end result is for the
go get
command to skip over the replaced repo, update artifacts +go.sum
file and commit thego.sum
along with thego.mod
changes in the Renovate MR.What you tried so far.
Some of the changes we have attempted to resolve this issue include:
gomodTidyE
to postUpdateOptionsgomodMassage
to postUpdateOptionsignoreDeps
in renovate.jsongit clone <private repo>
prior to runningrenovate
job in our forked version of the Renovate RunnergoGetDirs
in renovate.json to point to all other dependencies (skipping over the )but none of these changes seemed to fix the problem.
If anyone has any advice or insight into how to fix this, please let me know. It would be greatly appreciated! Happy to provide further details as required.
Relevant debug logs
No response
Beta Was this translation helpful? Give feedback.
All reactions