Skip to content
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

New postUpdateOption - cargoUpdate #23971

Open
rarkins opened this issue Aug 21, 2023 · 0 comments
Open

New postUpdateOption - cargoUpdate #23971

rarkins opened this issue Aug 21, 2023 · 0 comments
Labels
manager:cargo Cargo/Rust/crates.io priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:feature Feature (new functionality)

Comments

@rarkins
Copy link
Collaborator

rarkins commented Aug 21, 2023

Describe the proposed change(s).

A new postUpdateOption cargoUpdate which runs cargo update after any Cargo artifacts updating (kind of similar reasoning as go mod tidy for go).

Describe why we need/want these change(s).

For those who pin their dependencies in particular, this would mean the lock file is always refreshed to latest transitive dependencies.

We should make sure to note the downsides/reasons you don't want to do this though:

  1. This may also result in bumping/upgrading of direct dependencies too (e.g. if constraints are in use in Cargo.toml)
  2. This will also result in "unrelated" changes in the lock file. e.g. the PR is for upgrading direct dependency A, but also a lot of transitive dependencies of B are upgraded too, and it changes behavior or breaks the build unrelated to A
@rarkins rarkins added type:feature Feature (new functionality) priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others manager:cargo Cargo/Rust/crates.io status:ready labels Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
manager:cargo Cargo/Rust/crates.io priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:feature Feature (new functionality)
Projects
None yet
Development

No branches or pull requests

1 participant