-
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
Self-hosted composer registry on self-hosted GitLab gives wrong package url #10649
Comments
Where's the repo? |
This comment has been minimized.
This comment has been minimized.
Sorry... issue edited |
Thank you for providing a reproduction! 🎉 🚀 The Renovate team will take a look at the reproduction repository. |
Any update on this issue? |
I think we're still at the stage where we're figuring out what's going wrong, and if/how we want to fix it. |
Interesting, I seem to be having the same problem but not related to GitLab. My composer.json has 2 custom repos, basically looking like this "repositories": [
{
"type": "composer",
"url": "https://foo/bar/"
},
{
"type": "composer",
"url": "https://baz"
}
] And I see that renovate is able to lookup packages from baz but not the ones from foo/bar because it tries to look on packagist.
I can though access I'll try to debug / fix this later, but any hints would be appreciated. It's very strange that one repo works and the other doesn't, maybe this is a very simple thing that can be fixed easily Somewhere else in the log the registries were dumped as in
so it seems like the parsing was done correctly. @rarkins sorry to tag you directly but can you point me to the code that is triggering the lookup for a package with a specific registry URL? I wonder why it would trigger it incorrectly for package a but correctly for package b. And I hope that my issue is the same as here and I can fix it :) |
I have the same issue: Context
Version
Docker image: Based on a copy of https://gitlab.cobytes.io/development/renovate-runner/-/blob/main/templates/renovate.gitlab-ci.yml Configuration
|
create a public reproduction on gitlab.com |
or better create a public composer package on gitlab.com and a public consuming reproduction repo on github.com |
It's currently intended to not use the platform token for |
Part of the issue is that when authentication to one of the composer manager's This means that there are two separate issues: If a platform provides an "all in one" feature set, such as gitlab (repo, ci/cd, package registries for multiple languages/ecosystems, docker dependency proxy etc.) then users would (today) expect renovate to authenticate with the token they were instructed to configure as environment variable. (Paraphrasing: "You only need to configure RENOVATE_TOKEN and GITHUB_COM_TOKEN.")
|
@herndlm After a while I finally had time to recheck this bug.
|
How are you running Renovate?
Please select which platform you are using:
Renovate version: 25.31.0
Describe the bug
I have created a Composer registry on a self-hosted GitLab instance and trying to use two composer repositories on a project.
When renovate parses the composer file and tries to check the version, it gives a 404 error while trying to check on packagist instead of the right repository url.
Relevant debug logs
Click me to see logs
Have you created a minimal reproduction repository?
https://github.com/mrgesco/renovate-20210629
The text was updated successfully, but these errors were encountered: