-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependencies #7606
Update dependencies #7606
Conversation
r? @camsteffen (rust-highfive has picked a reviewer for you, use r? to override) |
I don't think we should add the patch version to any dependency versions unless there is a reason to. For example, Other than that, I looked over the updates and they seem fine to me. Maybe we should do this in the rust repo to make sure it doesn't break CI? @rust-lang/clippy do we have a procedure for this or any other concerns? |
Yeah I would do this in the rust repo and ensure we're not bumping deps used by the rest of rust. OTOH it should be fine to bump our lockfile deps to the versions in rust's lockfile |
I also wouldn't include the patch version. And before merging this, we have to make sure, that it doesn't break things in the Rust compiler. So either make this update directly in rust-lang/rust or do a dummy sync of this PR and test it there. |
Should this PR be updated to remove the patch versions from dependencies that already have it?
Sorry if I am being dense, but I should submit an analogous PR for this subtree of the rust repo? https://github.com/rust-lang/rust/tree/master/src/tools/clippy |
That depends on how this update behaves in rust-lang/rust I guess. Some may be necessary, to not duplicate dependencies, I guess.
Yes, exactly. You will also have to run |
It prepared a patch using I prepared a second patch after removing the patch versions with: find . -name Cargo.toml -not -path './tests/*' -exec sed -i '/^\[dependencies\]$/,$ s/\(= "[[:digit:]]\+\.[[:digit:]]\+\)\.[[:digit:]]\+\("\)/\1\2/' {} \; With the patch versions, From what I can tell, there were no other hitches with either of the rust PRs. Both are linked above. Please note that the current PR still includes the version numbers. Though, it's a trivial matter for me to remove them. |
Since we need a coordinated update for some of the deps with other tools, we practically have to do this directly in the Rust repo. So I'm closing this in favor of rust-lang/rust#88517. Let's continue further discussion and reviews there. |
…flip1995 Update Clippy dependencies without patch versions Trial run for rust-lang/rust-clippy#7606
…ip1995 Update Clippy dependencies without patch versions Trial run for rust-lang/rust-clippy#7606
Update Clippy dependencies without patch versions Trial run for rust-lang#7606
@camsteffen Serde crate intentionally violates semver rules, and regularly adds new public APIs in "patch" releases. As a result, it's not reliable to specify serde's version as |
We don't really use serde that extensively, so we don't expect to be hit by any API changes. We only use it to parse the Just defining |
Cargo doesn't support duplicating dependencies within the same semver-major version range, so you will never get a duplicate from specifying feature/patch version. Version specified in |
Is there a mechanism for keeping Clippy's dependencies up to date? If so, this PR can likely be ignored.
I ask because several of the dependencies look dated.
This PR updates them via:
Some small changes to the
cargo_common_metadata
lint were needed becausecargo_metadata
0.14.0 uses UTF8 paths.changelog: update dependencies