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

Silent failure when .netrc contains comments #1029

Open
2 tasks done
calebzulawski opened this issue Jan 21, 2025 · 0 comments
Open
2 tasks done

Silent failure when .netrc contains comments #1029

calebzulawski opened this issue Jan 21, 2025 · 0 comments

Comments

@calebzulawski
Copy link
Contributor

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

When a .netrc file contains comments (leading #), the file is silently not used, leading to authentication errors. This was discovered with py-rattler but I believe it's actually due to the netrc-rs crate.

Additional Context

It doesn't appear netrc files actually support comments, though the curl and python implementations do support it. At a minimum, it would be nice if there were an error when parsing the netrc file fails (without an error, it appears to be a problem with the credentials).

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

1 participant