conan-io / conan-package-tools

Conan Package Tools. Helps with massive package creation and CI integration (Travis CI, Appveyor...)
MIT License
165 stars 70 forks source link

Cannot install dependency from private package registry in CI/CD #575

Open wolfm89 opened 3 years ago

wolfm89 commented 3 years ago

Description of Problem, Request, or Question

I am using Gitlab to build a package that has a dependency on another package in a private registry. After specifying CONAN_LOGIN_USERNAME: "ci_user" and CONAN_PASSWORD: ${CI_JOB_TOKEN} I can upload to the repo's registry. But even though I specify CONAN_LOGIN_USERNAME_other_repo: "ci_user" and CONAN_PASSWORD_other_repo: ${CI_JOB_TOKEN} conan cannot pull the dependency and always fails with conans.errors.NotFoundException: Unable to find 'my_package/1.0@company/stable' in remotes. I checked the source code and to me it looks like remote authentication only happens for package uploads. Could that be? It seems like CPT never tries to login to my other registry before trying to pull from there.

Environment Details

Parcley commented 2 years ago

I am wondering if cpt could provide a solution for this, as in our project we are facing the same issue.

maybe this is related to #417