Open
Description
Summary
Original issue: #5707
Implementation: #14326
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#lockfile-path
Added a new flag --lockfile-path
that allows users to specify a path to lockfile other than the default path <workspace_root>/Cargo.lock
.
Unresolved Issues
- How this should work if the lockfile or a parent directory is not present
- In #14326, missing parent directories will be created when Cargo is about to write the lockfile. This minimizes the chance of creating dangling directories.
-
cargo install --lockfile-path
implies--locked
, and requires the alternaive lockfile to exist.- This behavior diverges from other commands, which allow the absence of lockfile at the alternative path.
Future Extensions
No response
Tasks
- Add an unstable doc under https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#lockfile-path doc: add lockfile-path unstable doc section #14423
-
cargo install
should make--lockfile-path
imply--locked
feat: lockfile path implies --locked on cargo install #14556 - Shell completions.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Progress