feat: Report some dependency changes on any command by epage · Pull Request #135...
source link: https://github.com/rust-lang/cargo/pull/13561
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
feat: Report some dependency changes on any command #13561
Merged
Conversation
Contributor
What does this PR try to resolve?
The goal is to help users be informed when they are held back by either MSRV or semver.
Fixes #13539
How should we test and review this PR?
Additional information
Collaborator
r? @weihanglo rustbot has assigned @weihanglo. Use r? to explicitly pick a reviewer |
added A-lockfile Area: Cargo.lock issues Command-generate-lockfile
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
changed the title
feat: Report some dependency changes on any command
WIP: feat: Report some dependency changes on any command
Contributor
Author
Test failures will show what the proposed output is |
Collaborator
☔ The latest upstream changes (presumably #13564) made this pull request unmergeable. Please resolve the merge conflicts. |
changed the title
WIP: feat: Report some dependency changes on any command
feat: Report some dependency changes on any command
Went through every file changes 💀. Thanks!
tests/testsuite/rust_version.rs
Show resolved
@@ -417,7 +417,7 @@ fn frequency() { | ||
.env("CARGO_GC_AUTO_FREQUENCY", "1 day") |
||
.masquerade_as_nightly_cargo(&["gc"]) |
||
.run(); |
||
assert_eq!(get_index_names().len(), 0); |
||
assert_eq!(get_index_names().len(), 1); |
Guess this is a consequence of cargo querying the latest versions for displaying lockfile changes after the build, while auto-gc was run ahead of the build.
Seems like a waste of energy but in real world that rarely happens and would be fine 🙆🏾♂️.
Show resolved
src/cargo/ops/cargo_generate_lockfile.rs
Show resolved
src/cargo/ops/cargo_generate_lockfile.rs
Show resolved
Member
This PR includes a UI change that prints a The Cargo team has discussed and considered it as a two-way-door change so I'm gonna merge this. @bors r+ |
removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label
added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label
Collaborator
☀️ Test successful - checks-actions |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
No milestone
Successfully merging this pull request may close these issues.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK