-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
curl doesn't work in nix-shell because of $SSL_CERT_FILE=/no-cert-file.crt default #13744
Comments
This relates to NixOS/nix#777 |
Can confirm that this is not only an issue with Can someone please fix this? |
Maybe even by reverting 39609a0 ? |
I added some system information. This happens for me before 39609a0, too. Indeed, with this new commit there's a new workaround to set |
This seems to be a good workaround, since |
According to my reading of 39609a0, the value of
That seems like perfectly reasonable behavior, no? |
@peti yes, but it doesn't work when SSL_CERT_FILE is unset. |
Well, the thing is that |
Well, we could do something, like don't set I've now set
in |
There certainly is an asymmetry here in the way |
I think that we can skip setting Also to be honest, I'm generally annoyed by having to run |
I suggest the following:
This way we get the desired behavior in |
Any progress in this? |
This issue is still relevant. |
Funny, I've bumped into this again right when you posted this comment. |
+1 |
PR: #15571 |
See NixOS/nixpkgs#13744 for context.
hum when building a custom derivation (fcitx), curl fails with this error during a nix-build. |
Euh since a fix for this landed almost three years ago I think we can close this no? #15571 |
when doing a nix-shell, curl doesn't work inside it for https uris (assuming curl is installed):
The reason is, that we set
SSL_CERT_FILE
in https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L387.While this may be the right thing to do when creating builds, it clearly isn't the right thing when opening a nix-shell without --pure, at least when -p is used. I believe this should only be done when using --pure.
Workaround is to do
unset SSL_CERT_FILE
.The text was updated successfully, but these errors were encountered: