-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
git fails to fetch via curl 8.11.0 #356114
Comments
I see that |
Sorry, I misread the git history, I thought it was you who updated curl but it's just the merge that was done by you. @Scrumplex was the one who updated curl. |
Upstream fix is this thing? curl/curl@0cdde0f (For me |
The commit that closed the upstream issue is curl/curl@f5c6169 |
See #356133 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
To be reverted once fix lands on stable channel. See NixOS/nixpkgs#356114
@Scrumplex seems like commit curl/curl@0cdde0f should also be added to I've tested locally with just See curl/curl#15513 Also, I've applied an overlay to my config which appears to fix the issue while it doesn't land on the stable channel (haven't tested extensively yet), feel free to copy: diogotcorreia/dotfiles@b682341 |
We probably won't be able to get that into 24.11 before its release any more, but it should be present after the first staging cycler after release. |
…ng-next-24.11` `curl` v8.11.0 was released with a bug that causes `git fetch` (and many similar commands, including Nix's [fetchers][3]) to fail due to failure to parse `.netrc` files. Luckily, after the bug was [reported upstream][1], a fix was quickly proposed and merged by its main [developer][2]. Not long after, the upstream `curl` patch was [backported][5] to the Nixpkgs `curl` derivation. Given that we rely on `.netrc` files this bug is a showstopper for us, so its important that we switch to the patched `curl` version ASAP. Instead of [waiting for the build to land][5] on the `nixos-24.11` branch, we will switch directly to the `staging-next-24.11` branch, which already includes the fix. [1]: curl/curl#15496 [2]: curl/curl@f5c6169 [3]: NixOS/nixpkgs#356114 [4]: NixOS/nixpkgs#356133 [5]: https://nixpk.gs/pr-tracker.html?pr=356660
…ng-next-24.11` `curl` v8.11.0 was released with a bug that causes `git fetch` (and many similar commands, including Nix's [fetchers][3]) to fail due to failure to parse `.netrc` files. Luckily, after the bug was [reported upstream][1], a fix was quickly proposed and merged by its main [developer][2]. Not long after, the upstream `curl` patch was [backported][5] to the Nixpkgs `curl` derivation. Given that we rely on `.netrc` files this bug is a showstopper for us, so its important that we switch to the patched `curl` version ASAP. Instead of [waiting for the build to land][5] on the `nixos-24.11` branch, we will switch directly to the `staging-next-24.11` branch, which already includes the fix. [1]: curl/curl#15496 [2]: curl/curl@f5c6169 [3]: NixOS/nixpkgs#356114 [4]: NixOS/nixpkgs#356133 [5]: https://nixpk.gs/pr-tracker.html?pr=356660
@Scrumplex what would it take to have that in 24.11 release? It is quite a serious breakage. |
@GuillaumeDesforges It has already been backported but it's in the staging(-next) branch. It is expected land on |
Just saw that right after posting. Thank you so much! Nix is ❤️ |
I tried your exact same patch. Doesn't seem to work for me. Still getting lots of Same errors described in #358271 |
@sg-qwt I think your problem is that you're pinning the nix package in your config: https://github.com/sg-qwt/nixos/blob/0f004ccefd36f302125ed2b11457624d761ee7b3/modules/profiles/common.nix#L38 You have to change the overlay to patch that one instead (or just stop pinning it/pin it to a custom derivation like |
Ahh, I completely forgot I pinned nix to stable long while ago. I can confirm your patch works as expected after removing my nix pinning and solves my headache. My bad, thanks! |
Describe the bug
git fetch via curl 8.11.0 fails with the following error if a .netrc file is present:
Steps To Reproduce
Steps to reproduce the behavior:
See curl/curl#15496
Expected behavior
git updates the repository.
Screenshots
Additional context
curl 8.10.1 is not affected by this bug.
Metadata
"x86_64-linux"
Linux 6.11.7, NixOS, 25.05 (Warbler), 25.05.20241114.cea28c8
yes
yes
nix-env (Nix) 2.24.10
"home-manager, nixpkgs"
"nixos"
/home/…/.nix-defexpr/channels/nixpkgs
Notify maintainers
@vcunat
Note for maintainers: Please tag this issue in your PR.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: