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

pixi/rattler_network crashes without a useful error message if $HOME isn't defined #1013

Open
2 tasks done
mcbeth opened this issue Jan 7, 2025 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@mcbeth
Copy link

mcbeth commented Jan 7, 2025

Checklist

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

What happened?

If I try to access a private channel on Linux without the environment variable HOME set, pixi is crashing in
https://github.com/conda/rattler/blob/main/crates/rattler_networking/src/authentication_storage/backends/file.rs#L149

The error is just that "called 'Option::unwrap()' on a 'None' value"

I was debugging something else and had my whole environment empty, so that "HOME" was the problem wasn't immediately obvious. I don't have a problem with requiring that that environment variable being required, I just suspect it'd be better to catch that error and give a better message.

Additional Context

No response

@baszalmstra baszalmstra added the bug Something isn't working label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants