Skip to content

chore(nix): update nixpkgs to fix crate downloads - #234

Merged
unhappychoice merged 1 commit into
mainfrom
chore/update-nixpkgs-for-crate-fetch
Aug 30, 2026
Merged

unhappychoice merged 1 commit into
mainfrom
chore/update-nixpkgs-for-crate-fetch

Conversation

@unhappychoice

Copy link
Copy Markdown
Owner

Problem

Nix Build CI is failing on every branch (e.g. #232):

trying https://crates.io/api/v1/crates/scanlex/0.2.0/download
curl: (22) The requested URL returned error: 403
error: cannot download crate-scanlex-0.2.0.tar.gz from any mirror

crates.io now rejects the /api/v1/crates/<name>/<version>/download endpoint (403 for any crate), and the pinned nixpkgs (050e09e, 2025-11-22) uses exactly that URL in import-cargo-lock.nix. Any nix build .#unstable fails as soon as a crate is not already in the binary cache — scanlex was 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; main fails the same way today.

Fix

Bump the nixpkgs pin (050e09e 2025-11-22 → 83199d0 2026-08-28). Newer nixpkgs fetches crates from static.crates.io instead, 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 .#unstable succeeds locally with the updated lock

🤖 Generated with Claude Code

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]>
@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • flake.lock is excluded by !**/*.lock

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 34e6adc9-5f87-44f6-8e83-1edd04af91d3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.70%. Comparing base (4c2a482) to head (d2a9d75).

Additional details and impacted files

Impacted file tree graph

@@           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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@unhappychoice
unhappychoice merged commit e20bba9 into main Aug 30, 2026
9 checks passed
@unhappychoice
unhappychoice deleted the chore/update-nixpkgs-for-crate-fetch branch August 30, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant