-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
cargo: allow caller to override CARGO_HTTP_CAINFO #82496
Conversation
Sorry, I set it to merge to staging but didn't notice I pulled in 171 other commits. Switched back to master for now, if staging is the correct place to merge this, let me know and I'll update the PR. |
I think he means we should only set the environment variable in our fetcher where we download cargo dependencies without any shell wrapper around cargo. |
Yeah, and actually it's actually included there already. Based on the history I'm pretty sure this is all from the time before
There are a few places where cargo/rust are used directly but other than possibly having to add cacert to those we should be able to get rid of it in the cargo wrapper. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Related issue on how to handle certificates #8247. |
As proposed in NixOS#82496, we should only set the related env vars for the fetcher instead of breaking the function of cargo itself.
As proposed in #82496, we should only set the related env vars for the fetcher instead of breaking the function of cargo itself.
Superseded by #210366 |
Motivation for this change
Currently there seems to be no way to supply cargo with self signed certificates, this allows the user to set the environment variable that cargo uses to find cainfo.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)