Renovate Preset for Bazel Rulesets #82
Replies: 3 comments 6 replies
-
I agree with the intention. Can the strategy be made configurable? Considering rules_nixpkgs, for example, the repository contains multiple repositories that are user facing ( |
Beta Was this translation helpful? Give feedback.
-
@brentleyjones I believe you have thoughts on how dependencies for rulesets should be managed. Do the goals listed above satisfy the requirements as you see them? |
Beta Was this translation helpful? Give feedback.
-
This was discussed at the Bazel Rules Author SIG meeting yesterday. There were no comments about this topic. I have not heard from anyone that they would use a Renovate preset defined in a For posterity, the Renovate configuration that disables updates in the root and allows updates in sub-directories is below: {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
":dependencyDashboard",
":semanticPrefixFixDepsChoreOthers",
"group:monorepos",
"group:recommended",
"replacements:all",
"workarounds:all"
],
"packageRules": [
{
"matchFiles": ["MODULE.bazel"],
"enabled": false
}
]
} |
Beta Was this translation helpful? Give feedback.
-
I have developed a Renovate configuration for Bazel rulesets. The goals of the configuration are as follows.
MODULE.bazel
. The idea is that a ruleset should strive to require the lowest viable version of an external dependency so that clients can dictate the version of a dependency to use.Testing
I have created a Renovate preset with the proposed configuration. I have updated bazel-starlib, rules_swift_package_manager, and rules_swiftformat to use the preset. So far, Renovate is providing the desired updates.
Caveats
Next Steps
Once we have a consensus on the recommended ruleset configuration, I propose defining a Renovate preset and advertising it to rules authors. The question is, where should it live? I think that there are two options.
bazel-contrib
calledrenovate_presets
orrenovate-presets
.I think that a dedicated repository makes a little more sense, as we want to encourage clients to use the preset instead of copying the configuration. Thoughts?
Please let me know what you think of the configuration and how it should be advertised.
Beta Was this translation helpful? Give feedback.
All reactions