axodotdev / axodotdev/cargo-dist
--frozen builds?
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 149
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 32
Description
In CI you should be building off your lockfile and not bothering to fetch the registry (which takes forever these days...). We should probably add support for --locked and/or --frozen to cargo-dist and have CI use it to make builds faster and more reliable. Not sure how that might impact cargo-metadata if at all.
Probably we shouldn't default to using these flags, since when running locally we want things to Just Work (although we *should* try to properly forward the "updating registry" printout from Cargo because it looks like we're just hanging otherwise...)
Contributor guide
Research direction
Start by tracing how cargo-dist invokes Cargo in CI and how cargo-metadata is affected. Compare the behavior of Cargo's --locked and --frozen flags, then verify that CI avoids unnecessary registry fetches while local builds keep their current defaults and registry-update output remains visible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, ci-cd
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100