-
Notifications
You must be signed in to change notification settings - Fork 14
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
$HOME environment variable is required for .netrc detection in tests #103
Comments
Hm curious why not add a note to readme on this? |
Ah, sorry, I meant to leave a message when I closed this -- this seems like something not particular to this ruleset but more general w/r/t how Bazel and .netrc interact. Open to adding a line to the README, seemed like an odd place, though, and your issue captures the thing to do. |
Ah I didn’t mention that this can be confusing to users who are coming from pip (rules_python) since pip has a workaround that detects .netrc without the $HOME variable. |
Found a clean way to inherit $HOME, created a #105 . |
Found this out as I was investigating why the authentication wouldn't work only on the test of the pip_compile.
Creating an issue in case it would be helpful to another person. To add it, add
--test_env=HOME
such as in.bazelrc
.It might be worth adding this to the README in case someone else hits this issue.
Related ticket gribouille/netrc#4 .
The text was updated successfully, but these errors were encountered: