fix(nix): update nixpkgs to fix crates.io 403 on crate downloads - #498
Conversation
crates.io now rejects requests carrying the default curl User-Agent, which nixpkgs fetchurl sends. Every crate not already present in cache.nixos.org fails to download, breaking `nix build .#unstable` (ansi-to-tui 8.0.1 was the first to hit this). nixpkgs fetches crates from static.crates.io as of 2026-06, so pulling the pinned input forward resolves it.
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #498 +/- ##
=======================================
Coverage 93.02% 93.02%
=======================================
Files 233 233
Lines 23095 23095
=======================================
Hits 21485 21485
Misses 1610 1610 🚀 New features to boost your workflow:
|
Unblocks the
Nix Buildcheck, which is currently red on every open PR (#496, #497).Cause
nix build .#unstablefails while vendoring crates:crates.io now rejects requests that carry the default curl User-Agent, which is what nixpkgs
fetchurlsends:It is not a flake or a transient error — re-running the job reproduces it identically. Only crates missing from
cache.nixos.orgare affected, which is why it surfaced now:ansi-to-tui8.0.1 happens not to be cached, so it is the first crate that has to be fetched for real.Fix
The pinned nixpkgs (
64c08a7, 2026-05-23) still builds the download URL fromhttps://crates.io/api/v1/crates. Upstream has since switchedimportCargoLockto thestatic.crates.ioCDN, which does not filter on User-Agent. Moving the input forward to34ab990(2026-08-31) picks that up.Verification
🤖 Generated with Claude Code