Handle private Composer packages #35609
-
How are you running Renovate?Self-hosted Renovate If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.GitLab, docker image ghcr.io/renovatebot/renovate:39, Renovate 39.262.0 Please tell us more about your question or problemHi, I have a PHP project with public packages hosted on Packagist (here {
"name": "my/app",
"require": {
"symfony/console": "^7.2",
"foo/bar": "^3.1"
},
"repositories": [
{
"type": "vcs",
"url": "https://self-hosted.gitlab.com/foo/bar.git"
}
]
} In order to handle [{"matchHost": "self-hosted.gitlab.com", "token": "$CI_JOB_TOKEN", "hostType": "git-tags"}] But Renovate still lookups to Packagist for this library. Could you please help me to make it works with both public and private packages? Thanks Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi there, Please locate the debug message If you self-host Renovate: make sure you run Renovate with Find the relevant dependency/dependencies in the log message, and copy/paste those parts into this discussion. If you do not know which bits we need, you can copy/paste the full log message. Read the Renovate docs, Troubleshooting to learn more about getting the docs, and getting the correct type of logs. Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
-
Hi, Here the log message:
Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi there, Please help this Discussion progress by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running Renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
Hi,
I finally found that Renovate expects the package name for each private package in
composer.json
, so in my example: