You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rustPlatform.importCargoLock errors out with HTTP 403 error #524979
Rust package builds using fetchCargoVendor have started failing intermittently with HTTP 403 responses when downloading crate tarballs from https://crates.io/api/v1/crates/<name>/<version>/download. The failures are not caused by any recent change in nixpkgs, they're triggered server-side by crates.io, which has begun blocklisting specific python-requests/<version> User-Agent strings.
This was fixed for fetchCargoDeps in #512735, but importCargoLock is a separate fetcher that is still affected by this issue. Currently, this affects 106 packages out of all 2759 Rust packages (3.84%)
Activity
philiptaron commentedon May 27, 2026
I opened #524985 to attempt to fix this.
rustPlatform.importCargoLock: download crates from static.crates.io
rustPlatform.importCargoLock: download crates from static.crates.io
rustPlatform.importCargoLock: download crates from static.crates.io
nix: backport importCargoLock static.crates.io fix
nix: backport importCargoLock static.crates.io fix
nix: backport importCargoLock static.crates.io fix
rustPlatform.importCargoLock: download crates from static.crates.io
rustPlatform.importCargoLock: download crates from static.crates.io
fix: upgrade nixpkgs to 26.05 (indirectly fix crates.io bad API use)
Bump flake inputs for static.crates.io crate downloads
nix: bump flake inputs for static.crates.io crate downloads
rustPlatform.importCargoLock: download crates from static.crates.io
Upgrade flake and CI (#216)
fix(nix): point fetchCrate at static.crates.io too