cargo icon indicating copy to clipboard operation
cargo copied to clipboard

docs: add lock file section to the resolver docs

Open Fishrock123 opened this issue 7 months ago • 1 comments

Adds some documentation about how lockfiles work to the resolver section, particularly regarding when lock files exist in library dependencies.

Effectively re-adds an updated section of docs that was lost here: https://github.com/rust-lang/cargo/pull/12382/files#diff-197a732275c32bdbdb079bdd92ac8a4ba585ee556ea978e9e661804eb76ce9eeL117-L121

Related to this Zulip thread https://rust-lang.zulipchat.com/#narrow/channel/246057-t-cargo/topic/cargo.20lock.20in.20dependency/with/519679182

Fishrock123 avatar May 22 '25 18:05 Fishrock123

r? @ehuss

rustbot has assigned @ehuss. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

rustbot avatar May 22 '25 18:05 rustbot

@rustbot author

weihanglo avatar Jun 02 '25 21:06 weihanglo

Reminder, once the PR becomes ready for a review, use @rustbot ready.

rustbot avatar Aug 18 '25 00:08 rustbot

For myself, I would try to fit lockfiles into a new section under Constraints and Heuristics. Unsure if I'm losing too much nuance but we can describe lockfiles as being relevant to pick_next_version, preferring the locked version over all else.

epage avatar Sep 11 '25 18:09 epage

For myself, I would try to fit lockfiles into a new section under Constraints and Heuristics. Unsure if I'm losing too much nuance but we can describe lockfiles as being relevant to pick_next_version, preferring the locked version over all else.

Did this in #15958.

epage avatar Sep 12 '25 18:09 epage