markfinal / cruiz

Conan recipe user interface
https://cruiz.readthedocs.io/
Apache License 2.0
11 stars 1 forks source link

How to authenticate repos in cruiz #122

Open maitrey opened 9 months ago

maitrey commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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.