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
[question] how to inject SCM credentials when building packages from sources #6452
Comments
Hi @GordonJess, We are going to release some new things for
You will be able to define a |
Brilliant! Looking forward to it! |
#6334 was merged and released as an opt-in in v1.22. I think it should close this issue too, right? |
@czoido Hi I'm new to conan - and I can't quite figure how to use your solution. If you can point me up to location for the RTFM, that'd be also great :) |
Hi @jonathangoorin, |
I don't really understand how this solves the question: But image if I have two packages:
If I want to install all dependencies for Now this could be solved by storing git credentials for A solution, which might work, is to add new environment variables (e.g. the logic of reading from an environment variable should probably be near this code: conan/conans/client/tools/scm.py Line 50 in e17ab7e
|
I agree with @Parcley - proposed solution solved completely different issue. Are you going to address the right problem? |
Conan 2.0 provides a Otherwise, this issue is quite outdated, the As this is outdated issue referring to removed |
I've already read a related issues on this topic (5595) but wasn't able to find a solution to my problem.
When I try to rebuild a package from source, conan tries to checkout the url which was automatically stored in the
scm::url
attribute. But since the url is stored without the credentials since 4207 (which I do agree with), the cloning of sources fails during authentication. I also want to avoid storing credentials inscm::username
orscm::password
fields.I did read a suggestion to use the
proxies
section in conan.conf to embed user/password in urls, but I from what I can tell theuser:pass
here is only for authenticating against the proxy itself, not the request url. Or maybe I'm missing something...?Git credential caches are also not a good option for me since they still require the password to be manually input every so often, which would be a real pain for the CI slaves.
Ideally I'd like to provide the credentials to conan on the command line. or for conan to take the values from environmental variables (like the solution for artifactory credentials). Of course this might be an issue when one command rebuilds several packages coming from different sources which need different creds. Maybe storing default creds per url in
conan.conf
can have default credentials per url.How are other users typically handling this? Any suggestions would be much appreciated!
The text was updated successfully, but these errors were encountered: