Skip to content

chore(nix): update flake.lock - #1630

Merged
orhun merged 1 commit into
orhun:mainfrom
ognis1205:fix/nixpkgs-cratesio-403
Sep 6, 2026
Merged

orhun merged 1 commit into
orhun:mainfrom
ognis1205:fix/nixpkgs-cratesio-403

Conversation

@ognis1205

@ognis1205 ognis1205 commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Description

Update flake.lock to pull in a newer nixpkgs that includes the fix for crates.io 403 errors when fetching crate tarballs during cargo vendor fetches:

NixOS/nixpkgs#524985

Motivation and Context

GitHub Actions CI builds started failing with errors like:

error: cannot download crate-async-compression-0.4.30.tar.gz from any mirror

This was caused by crates.io blocking Nix's default User-Agent (curl/* Nixpkgs/*) on the api/v1/.../download endpoint, returning HTTP 403. The fix was backported to nixpkgs:

which switches importCargoLock to download directly from static.crates.io instead.

How Has This Been Tested?

  • Ran nix flake update locally
  • Verified nix flake check passes

Screenshots / Logs (if applicable)

N/A

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (no code change)
  • Refactor (refactoring production code)
  • Other

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly (if applicable).
  • I have formatted the code with rustfmt.
    • cargo +nightly fmt --all
  • I checked the lints with clippy.
    • cargo clippy --tests --verbose -- -D warnings
  • I have added tests to cover my changes.
  • All new and existing tests passed.
    • cargo test

@ognis1205
ognis1205 requested a review from orhun as a code owner September 6, 2026 15:42
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.64%. Comparing base (854d892) to head (d470c3b).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1630      +/-   ##
==========================================
- Coverage   52.68%   52.64%   -0.03%     
==========================================
  Files          27       27              
  Lines        2597     2597              
==========================================
- Hits         1368     1367       -1     
- Misses       1229     1230       +1     
Flag Coverage Δ
unit-tests 52.64% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 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.

@orhun
orhun merged commit f07a7c8 into orhun:main Sep 6, 2026
112 of 115 checks passed
@ognis1205
ognis1205 deleted the fix/nixpkgs-cratesio-403 branch September 6, 2026 22:43
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