-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Some go dependencies can't be resolved #7663
Comments
Looks like a bad regex at gomod manger to me. 🤔 |
Or go datasource issue. @HonkingGoose can you please add go datasource label . 🙃 |
Looking at the code, tracing backwards from https://github.com/renovatebot/renovate/blob/2932e88/lib/datasource/go/index.ts#L121, it seems that the issue is that the module The wrong github API URL might stem from an incorrectly generated I'd create a PR if I had the time, sorry.. |
here is going wrong: renovate/lib/datasource/go/index.ts Lines 84 to 86 in 2932e88
I think we need to add something like the following before: if (goImportURL?.startsWith('https://github.com/')) {
return {
datasource: github.id,
depName: goModule,
lookupName: goImportURL
.replace('https://github.com/', '')
.replace(/\/$/, ''),
};
}
const gitlabRes = gitlabRegExp.exec(goImportURL);
if (gitlabRes) {
return {
datasource: gitlab.id,
depName: goModule,
registryUrl: gitlabRes[1],
lookupName: gitlabRes[2].replace(/\/$/, ''),
};
} maybe we need to add an additional check for gitlab urls too? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🎉 This issue has been resolved in version 24.77.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What Renovate type, platform and version are you using?
selfhosted, v23.72 in docker, accessing a Gitea instance.
Describe the bug
The go dependency
fyne.io/fyne
(and probably others) can not be resolved.Relevant debug logs
To Reproduce
Here is a minimal reproduction repo: https://git.nroo.de/norwin/renovate-fyne-repro
Additional context
Note that the github fetch URL uses an incorrectly extracted repo slug (
fyne/undefined
instead offyne-io/fyne
).Even if the repo slug was correct, this URL gives me a 404, shouldnt it be
https://api.github.com/repos/...
?The text was updated successfully, but these errors were encountered: