Commit bc0e50b
authored
Bump nightly to 2026-05-27 and vendor crates without nixpkgs importCargoLock (#227)
## Why
Three things landed together because untangling them midway through
wasn't worth a separate PR cycle.
1. **Nightly bump to `2026-05-27`** and the in-tree clippy fork promoted
to a flake input (`clippy-fork`), so it's pinned alongside the rest of
the toolchain.
2. **Audit pass on tautological test assertions** in `tests/default.nix`
per the `AGENTS.md` guidance — checks that just restate the source got
deleted.
3. **Stop using nixpkgs `rustPlatform.importCargoLock` for crate
vendoring.** This was forced by crates.io rolling out a User-Agent gate:
any UA containing `curl` now returns HTTP 403, which catches nixpkgs's
default `curl/X.Y Nixpkgs/Z`. Rather than patch curl,
`ix.buildRustPackage` now materializes its own vendor dir via the
existing `resolveVendorDir` and hands it to
`rustPlatform.buildRustPackage` as `cargoDeps`. One vendor builder, one
URL pattern (`static.crates.io` CDN — same one cargo's sparse protocol
uses), and we own all of it.
## What this means for callers
- Every Rust package built via `ix.buildRustPackage` now goes through
the new path. `llm-clippy` was the last holdout calling
`rustPlatform.buildRustPackage` directly; it's switched. Its own clippy
policy gate is off (would recurse — it IS the clippy that lints
everything else); other policy gates stay on.
- User-supplied `cargoHash`, `cargoDeps`, or `cargoVendorDir` still
wins. The new code only fires on the default path.
- FOD hashing is content-only, so cached crate tarballs survive the URL
change.
## Verified locally
- `nix run .#lint` clean
- `nix eval` succeeds for `llm-clippy`, `dag-runner`, `ix`,
`nix-cargo-unit` on `aarch64-darwin`
- Full Linux builds left for CI1 parent ddb60c3 commit bc0e50b
8 files changed
Lines changed: 130 additions & 286 deletions
File tree
- lib
- languages
- packages/llm-clippy
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
| |||
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
| 61 | + | |
53 | 62 | | |
54 | 63 | | |
55 | 64 | | |
| |||
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
| 98 | + | |
89 | 99 | | |
90 | 100 | | |
91 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| 263 | + | |
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
| |||
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
372 | 381 | | |
373 | 382 | | |
374 | 383 | | |
| 384 | + | |
375 | 385 | | |
| 386 | + | |
376 | 387 | | |
377 | 388 | | |
378 | 389 | | |
| |||
778 | 789 | | |
779 | 790 | | |
780 | 791 | | |
| 792 | + | |
781 | 793 | | |
782 | 794 | | |
783 | 795 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
261 | 267 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
| 268 | + | |
| 269 | + | |
266 | 270 | | |
267 | 271 | | |
268 | 272 | | |
| |||
684 | 688 | | |
685 | 689 | | |
686 | 690 | | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
687 | 712 | | |
688 | 713 | | |
689 | 714 | | |
690 | 715 | | |
| 716 | + | |
691 | 717 | | |
692 | 718 | | |
693 | 719 | | |
694 | 720 | | |
695 | 721 | | |
| 722 | + | |
696 | 723 | | |
697 | 724 | | |
698 | 725 | | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
| 726 | + | |
706 | 727 | | |
707 | | - | |
| 728 | + | |
708 | 729 | | |
709 | 730 | | |
710 | 731 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 11 | | |
17 | 12 | | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
21 | 16 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 17 | | |
28 | 18 | | |
29 | 19 | | |
30 | | - | |
| 20 | + | |
31 | 21 | | |
32 | 22 | | |
33 | 23 | | |
34 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
35 | 30 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 31 | | |
40 | 32 | | |
41 | 33 | | |
| |||
46 | 38 | | |
47 | 39 | | |
48 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
49 | 45 | | |
50 | 46 | | |
51 | | - | |
| 47 | + | |
52 | 48 | | |
53 | 49 | | |
54 | 50 | | |
| |||
0 commit comments