Skip to content

rustPlatform.importCargoLock: download crates from static.crates.io - #10

Merged
stephenjudkins merged 1 commit into
mercury-headfrom
sdj/noticket/fix-cargo-domain
Sep 1, 2026
Merged

stephenjudkins merged 1 commit into
mercury-headfrom
sdj/noticket/fix-cargo-domain

Conversation

@stephenjudkins

@stephenjudkins stephenjudkins commented Sep 1, 2026 •

Copy link
Copy Markdown

Cherry-picks NixOS#524985

I have verified this fixes this issue: https://github.com/MercuryTechnologies/mercury-web-backend/pull/89827

The crates.io API server's 1 req/sec rate limit currently surfaces as
intermittent HTTP 403 errors when vendoring lockfiles. Switch to the CDN
endpoint as recommended by upstream (rust-lang/crates.io#13482), mirroring
the fix already applied to fetchCargoVendor in NixOS#512735.

fetchurl is content-addressed by sha256, so the URL change does not affect
any downstream store paths.

Fixes NixOS#524979

# Conflicts:
#	pkgs/build-support/rust/import-cargo-lock.nix
@stephenjudkins
stephenjudkins marked this pull request as ready for review September 1, 2026 21:22

@9999years 9999years left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this is good, i'm assuming you've tested it locally

@9999years

Copy link
Copy Markdown
Member

ah i see the description now

@stephenjudkins
stephenjudkins merged commit a0a4361 into mercury-head Sep 1, 2026
6 of 9 checks passed
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.

3 participants