docs: use --locked when installing cargo-nextest (#12377)
## What Updates the optional `cargo-nextest` install command in `docs/install.md`: - `cargo install cargo-nextest` -> `cargo install --locked cargo-nextest` ## Why The current docs command can fail during source install because recent `cargo-nextest` releases intentionally require `--locked`. Repro (macOS, but likely not platform-specific): - `cargo install cargo-nextest` - Fails with a compile error from `locked-tripwire` indicating: - `Nextest does not support being installed without --locked` - suggests `cargo install --locked cargo-nextest` Using the locked command succeeds: - `cargo install --locked cargo-nextest` ## How Single-line docs change in `docs/install.md` to match current `cargo-nextest` install requirements. ## Validation - Reproduced failure locally using a temporary `CARGO_HOME` directory (clean Cargo home) - Example command used: `CARGO_HOME=/tmp/cargo-home-test cargo install cargo-nextest` - Confirmed success with `cargo install --locked cargo-nextest`
This commit is contained in:
parent
354e7fedd2
commit
9176f09cb8
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ rustup component add clippy
|
|||
# Install helper tools used by the workspace justfile:
|
||||
cargo install just
|
||||
# Optional: install nextest for the `just test` helper
|
||||
cargo install cargo-nextest
|
||||
cargo install --locked cargo-nextest
|
||||
|
||||
# Build Codex.
|
||||
cargo build
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue