Repository navigation
chore(nix): update nixpkgs to fix crate downloads - #234
Conversation
crates.io now returns 403 for the /api/v1/crates/<name>/<version>/download endpoint, which is the URL the pinned nixpkgs (2025-11-22) uses to fetch crates in cargoLock.lockFile builds. Every `nix build .#unstable` run fails as soon as a crate is missing from the binary cache. Newer nixpkgs fetches crates from static.crates.io instead (rust-lang/crates.io#13482), so bump the pin to pick that up. Verified locally with `nix build .#unstable`. Co-Authored-By: Claude Opus 5 <[email protected]>
|
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: Pro Plus 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 #234 +/- ##
=======================================
Coverage 99.70% 99.70%
=======================================
Files 61 61
Lines 8397 8397
=======================================
Hits 8372 8372
Misses 25 25 🚀 New features to boost your workflow:
|
Problem
Nix BuildCI is failing on every branch (e.g. #232):crates.io now rejects the
/api/v1/crates/<name>/<version>/downloadendpoint (403 for any crate), and the pinned nixpkgs (050e09e, 2025-11-22) uses exactly that URL inimport-cargo-lock.nix. Anynix build .#unstablefails as soon as a crate is not already in the binary cache —scanlexwas simply the first one to need a real download after the chrono-english 0.2.0 bump.This is unrelated to the branches it happens to break;
mainfails the same way today.Fix
Bump the nixpkgs pin (
050e09e2025-11-22 →83199d02026-08-28). Newer nixpkgs fetches crates fromstatic.crates.ioinstead, per rust-lang/crates.io#13482.Verification
https://static.crates.io/crates/scanlex/0.2.0/download→ 200 (vs 403 on the API endpoint)nix build .#unstablesucceeds locally with the updated lock🤖 Generated with Claude Code