-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support self-hosted Go Modules in GitLab #8859
Comments
We recently implemented similar logic for changelog lookups for GitLab where we check if the hostname matches with the configured |
This issue has been labeled with This label will be replaced with If it's not clear what is missing to move this issue forward, ask for clarification in a new comment. If you think we already have what we need to move forward, mention this in a new comment. |
thanks @rarkins for picking this up so quickly. What are timelines are we looking like at the moment? What can I do to help get this moving? It would be amazing for us to have this as soon as is possible, it's something we have an active interest in solving due to our sheer number of repos that need better dependency management. Alternatives such as dependabot don't fit the bill so would love to get a solution here with Renovate! |
I'll try to fix the exception now, so at least all non private deps should work. |
I would add the following logic alongside the existing
|
thanks @rarkins, we can take a look if you think this is a community fix. Are you okay if I use this issue as a discussion ground if we need some support please? |
🎉 This issue has been resolved in version 24.70.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What Renovate type, platform and version are you using?
renovate/renovate:24.63.0@sha256:b79ce7d09a53f0f4b1ffe7ec1e91a0c8f088e1858d045c83dcf8eeba5a306a46
Describe the bug
Renovate is unable to lookup dependencies that exist in our private, self hosted Gitlab EE repositories. When an onboarding MR is raised we have warnings only for our own go mod dependencies, everything else (docker, github, etc) is fine.
Relevant debug logs
Appropriate log from renovate (i've removed domain name):
Have you created a minimal reproduction repository?
Please read the minimal reproductions documentation to learn how to make a good minimal reproduction repository.
Additional context
Looking at the logs, I could see a particularly interesting line
DEBUG: Go lookup source url
. I found that message in the source here,renovate/lib/datasource/go/index.ts
Line 61 in 6b15f6e
The
if (sourceMatch) {
is true as when callinghttps://${goModule}?go-get=1
you do get back the go-import and go-source meta html.What seems to happen though is that the following two if statements are not satisfied as the URL is not a github.com URL, and nor is it
/^(https:\/\/[^/]*gitlab.[^/]*)\/(.*)$/
. This causesgetDatasource
to return null.Perhaps a resolution here could be to default to the platform that is specified in config, in our case
gitlab
? Or use theRENOVATE_ENDPOINT
to configure thegitlabRegExp
for a best guess attempt at resolving the dependency? Obviously once that is working the call to Gitlab needs to be made with the PAT to be able to read from the private repository.So far i'm really impressed with Renovate and the flexibility it provides, we have hundreds of repositories we want to automatically manage our dependencies in but the main use case we have is allowing us to manage internal dependencies updates which it is currently failing to do. Any guidance / suggestions would be really appreciated :)
The text was updated successfully, but these errors were encountered: