Commit 14800e4
committed
test: split cargo fetch from cargo chef cook into separate layers
Experiment: use cargo chef cook --no-build to materialize the skeleton
(real Cargo.toml/Cargo.lock, dummy source) without compiling, then run
a separate cargo fetch --locked as its own layer, then cook again to
actually compile. Goal is to make dependency downloading independently
cacheable from compilation, so a change to build flags alone doesn't
force re-downloading everything.
Running in parallel against optimize/validity-docker-build-cache
(single combined cook layer) to compare — this only matters if it
still compiles successfully.1 parent 4cf1ab0 commit 14800e4
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
49 | 62 | | |
50 | 63 | | |
51 | 64 | | |
| |||
0 commit comments