Support Gradle strictly dependencies
#45481
jamietanna
started this conversation in
Suggest an Idea
Replies: 1 comment
|
sounds plausible |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Tell us more.
Within Gradle projects, it's possible to specify a "strict" dependency on a given dependency.
For instance:
dependencies { implementation('org.slf4j:slf4j-api') { version { strictly '[1.7, 1.8[' prefer '1.7.25' } } }Per the docs:
However, it is still the case where some users would appreciate their
strictlydependency pins to receive updates, for instance if there is a security update available for the package.Currently, Renovate does not extract, and therefore will not sugggest any updates to the
strictlyorpreferversions, as they aren't known to Renovate.We should make it possible to update these, but similar to recent discussions around how Renovate has a default
rangeStrategy=bumpfor Nuget (#44010), we should be cautious around introducing a behaviour change that may be surprising, while also making it so folks can start to get updates, if they so wish.I propose that:
strictlyandprefer@renovatebot/good-enough-parserdepType: strictlyanddepType: preferdepType: strictlyanddepType: prefernever receive "regular" dependency updates by defaultmanager/gomodworks, where transitive (depType: indirect) dependencies don't receive updates unless explicitly opted in via a package ruledepType: strictlyanddepType: preferdo receive dependency updates for vulnerability alerts, by defaultpreferis set, we'll bump that to the minimum version that fixes the vulnerabilityHow does this sound?
All reactions