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

netrc authentication not working #416

Closed
2 tasks done
mariusvniekerk opened this issue Oct 27, 2023 · 3 comments
Closed
2 tasks done

netrc authentication not working #416

mariusvniekerk opened this issue Oct 27, 2023 · 3 comments
Labels
✨ enhancement Feature request

Comments

@mariusvniekerk
Copy link
Contributor

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

$ pixi add my-internal-library
ERROR rattler_repodata_gateway::fetch: error=HTTP status client error (401 Unauthorized) for url (https://internal-channel.somereposity.com/linux-64/repodata.json)
ERROR rattler_repodata_gateway::fetch: error=HTTP status client error (401 Unauthorized) for url (https://internal-channel.somereposity.com/noarch/repodata.json)
  × failed to fetch repodata from channels
  ╰─▶ HTTP status client error (401 Unauthorized) for url (https://internal-channel.somereposity.com/linux-64/repodata.json)

Issue description

When trying to use an internal channel that makes use of simple authentication that mamba and conda supports reading from ~/.netrc pixi does not manage to reach the channel

Expected behavior

That ~/.netrc files are used for simple auth if they match the hostnames specified in a channel

@mariusvniekerk mariusvniekerk added the 🐞 bug Something isn't working label Oct 27, 2023
@ruben-arts
Copy link
Contributor

Het this feels more like a feature request than a bug. So I'll change the tag to that.

All the fetching and auth logic is situated in rattler so if you would like to take a stab at it please feel free to do it there.

@ruben-arts
Copy link
Contributor

I don't know of a way to test this, but I assume this now is a feature we support? @baszalmstra

@wolfv
Copy link
Member

wolfv commented Feb 23, 2024

This should be fixed in rattler now.

@wolfv wolfv closed this as completed Feb 23, 2024
@dennis-wey dennis-wey mentioned this issue Mar 21, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement Feature request
Projects
None yet
Development

No branches or pull requests

3 participants