Skip to content
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

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

Open
wolfm89 opened this issue Aug 25, 2021 · 1 comment
Open

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

wolfm89 opened this issue Aug 25, 2021 · 1 comment

Comments

@wolfm89
Copy link

wolfm89 commented Aug 25, 2021

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

  • Conan Package Tools Version: 0.35.1
  • Operating System: Linux
  • Operation System Version: Ubuntu 20.04
  • Compiler+version: gcc-10
  • Docker image: conanio/gcc10
  • Conan version: conan 1.39.0
  • Python version: python 3.7.5
@Parcley
Copy link

Parcley commented Oct 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants