Possible to group updates based on update-lockfile
action?
#28882
Replies: 3 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I don't think that's relevant. If a direct dependency of yours updates one of its own dependencies, and it's a major bump, but the API or functionality of the direct dependency doesn't change as a result, then you shouldn't worry yourself that it's a major bump - you have no breaking changes to deal with.
Good point, but you can split this into two rules to accommodate it. You can use |
Beta Was this translation helpful? Give feedback.
-
Yes, that's how it should work by default in the latest version of Renovate.
Default behavior is one PR per dependency, split between major and non-major. So you might get e.g. a lockfile-only PR for a minor update and a package file + lockfile update for a major update. If you group, then you get multiple updates in a single PR based on what criteria you set. |
Beta Was this translation helpful? Give feedback.
-
What would you like help with?
I would like help with my configuration
How are you running Renovate?
None
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
No response
Please tell us more about your question or problem
I am considering using Renovate to manage automatic dependency updates to my Rust repositories. The key things I want for such updates are:
Cargo.lock
(if present) should be updated whenever a new version of a dependency is released, butCargo.toml
should only be updated when a new version of a direct dependency is incompatible with the current version specifier.Cargo.toml
specifies the dependencyfoo = "1.2.3"
, then upon the release of foo v1.3.0,Cargo.lock
should be updated butCargo.toml
should not. When foo v2.0 is released,Cargo.toml
should be updated to specifyfoo = "2.0"
, andCargo.lock
should be updated to match."rangeStrategy": "update-lockfile"
setting does. So far, so good.Dependency updates that only result in modifications to
Cargo.lock
should be grouped into a single PR each time Renovate runs.Dependency updates that result in modifications to
Cargo.toml
should be realized as one PR per direct dependency; each such PR should just update a single line1 inCargo.toml
along with whatever updates toCargo.lock
follow from that.(I am aware that 2 and 3, taken together, are likely to lead to merge conflicts when more than one Renovate PR is open at once; as a side question, I'd appreciate any advice for dealing with this beyond just "Merge one PR and rebase the next one at a time.")
Now, I don't see a way in the configuration docs to get Renovate to do both 2 and 3 at the same time. Am I missing something, or should this become a feature request?
Logs (if relevant)
Logs
Footnotes
Or multiple lines, for the occasional case where the same package appears under more than one of
[dependencies]
,[dev-dependencies]
, and[build-dependencies]
. ↩Beta Was this translation helpful? Give feedback.
All reactions