dependabot: Ignore patch updates of Rust crates (Cargo) #310
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We currently use the following strategy to avoid too many dependabot PRs (i.e., to reduce the noise and work required to merge them): We set the update interval to monthly and manually run
cargo update
just before the scheduled dependabot run to commit all compatible updates at once.We only need dependabot to update
Cargo.toml
and to open PRs for security updates right away.We don't lock any dependencies to specific patch version so we can instruct dependabot to ignore all patch updates as that should never require updates to
Cargo.toml
. This setting also shouldn't affect/prevent security updates (the documentation isn't that clear on this 0 but at least we'd notice as it certainly shouldn't affect the dependabot (security) alerts) and we still get the patch updates via ourcargo update
batches.We cannot ignore minor updates as well due to
0.y.z
releases (we lock those to the minor version inCargo.toml
as patch releases usually don't change the API even though SemVer theoretically allows this).PS: We're using the default dependabot configuration that only updates direct dependencies (except for security updates) so we need to perform major/minor/patch updates of indirect dependencies manually through
cargo update
anyway.