-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
A-lockfileArea: Cargo.lock issuesArea: Cargo.lock issuesC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewS-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.
Description
Summary
Original issue: #5707
Implementation: #14326
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#lockfile-path
The -Zlockfile-path flag enables the resolver.lockfile-path configuration option,
which allows you to specify the path of the lockfile 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 --config resolver.lockfile-path=<path>implies--locked, and requires the alternative lockfile to exist.- This behavior diverges from other commands, which allow the absence of lockfile at the alternative path.
- Allow to set
lockfile-pathvia an environment variable #15510
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 installshould make--lockfile-pathimply--lockedfeat: lockfile path implies --locked on cargo install #14556 - Add support for
resolver.lockfile-pathin fix(lockfile): switch toresolver.lockfile-pathconfig #16510 - Remove
--lockfile-pathin 1.95.0-nightly
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
A-lockfileArea: Cargo.lock issuesArea: Cargo.lock issuesC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewStatus: Issue or feature is accepted, and has a team member available to help mentor or reviewS-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.
Type
Projects
Status
In Progress