Support updating Bazelmod lock file when updating Cargo.toml #42046
Replies: 2 comments
-
|
I have a reproduction here: |
Beta Was this translation helpful? Give feedback.
-
|
I have a similar request for:
We currently work around this by having our custom post-upgrade task (of course you need to configure this in {
commands: ["find . -name MODULE.bazel.lock -type f -print -execdir bazelisk mod deps --lockfile_mode=update \;"], // note: unverified, we indirect via a shell script.
executionMode: "branch",
installTools: { bazelisk: {} }
}My gut feeling is that Renovate cannot possibly model all bazel module extensions. A general-purpose "trigger bzlmod lockfile update after this type of package update" mechanism would probably be more appropriate. At this stage, I do not know how such a mechanism would look like. Open questions from the top of my head:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Tell us more.
When Renovate updates a
Cargo.tomlfile in a Bazel repo, it doesn't update theMODULE.lock.This leads to errors like
Suggestion
Renovate should update the Bazelmod lock file when it's updating Rust dependencies in
Cargo.toml.Beta Was this translation helpful? Give feedback.
All reactions