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

How to authenticate repos in cruiz #122

Open
maitrey opened this issue Sep 18, 2023 · 4 comments
Open

How to authenticate repos in cruiz #122

maitrey opened this issue Sep 18, 2023 · 4 comments

Comments

@maitrey
Copy link

maitrey commented Sep 18, 2023

Dear Mark,

I am using conan-2.0.6 and using latest alpha release of cruiz.
I am unable to create the graphs that I like to as I donot know where to authenticate my repos in cruiz.

 conan remote login autosar-conan-local  username -p mytoken

Could you please help me?

Thanks!
Br,
Maitrey

@markfinal
Copy link
Owner

I've not needed to deal with remotes behind an auth before, so I'll have to think about how to deal with this longer term.

In the meantime, I have two ideas:

  1. try the Conan environment variables to set the login. https://docs.conan.io/1/reference/env_vars.html#env-vars-conan-login-username Although I can't see these documented in v2, I can see them in the Conan 2.x code: https://github.com/search?q=repo%3Aconan-io%2Fconan%20CONAN_LOGIN_USERNAME&type=code

  2. cruiz has an option for each local cache it manages to run an arbitrary Conan command, so you could try that

Screenshot 2023-09-20 at 11 23 09

@maitrey
Copy link
Author

maitrey commented Sep 20, 2023

Then I get this:

  1. First option doesnot work inspite of providing conan login and password.
  2. Option2 other commands work but not setting the user name and password , that could be probably due to enterprise environment.

@markfinal
Copy link
Owner

Sorry that neither option work. I'll have a think, as I would need a way to test any solution myself. Can't say when I'll definitely get to this though, as even the alphas I made for cruiz have had to take a back seat for a while.

@maitrey
Copy link
Author

maitrey commented Sep 21, 2023

I managed to set proxy and was able to go further but stuck at the wizard. It determines the version of the package as well but gets stuck at the point "Local cache Choose the local cache to associate the recipe with".
I can only go backwards and not forward with it. If I choose default it doesnot enable the "Next" button :(.
I think I am missing something regarding configuration.
Also, The Run command widget shows the package that i build from the recipe.

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