Commit 8855774
Fix
### Motivation
The `bazel:mod-tidy` job is meant to ensure `MODULE.bazel` remains in an
optimal state (not only in `bazel`'s opinionated format, but first and
foremost to help maintain the `use_repo` directives that Gazelle will
update).
The problem is that I added it without thinking it could fail due to
`MODULE.bazel.lock` being updated by side effect, which is already (and
better) guarded by the sibling `bazel:mod-deps` job, misleadingly
causing [both to
fail](https://gitlab.ddbuild.io/DataDog/datadog-agent/-/pipelines/90857566)
on inadvertent changes in the lockfile:
<img width="337" height="159" alt="image"
src="https://github.com/user-attachments/assets/c6a3f998-29ef-4286-a561-2a48f3555a61"
/>
### What does this PR do?
Adding `--lockfile_mode=off` to `bazel mod tidy` is therefore meant to
prevent `bazel:mod-tidy` from failing on lockfile changes for a proper
separation of concerns, distinct hints being provided:
```diff
-💡 bazel mod tidy
+💡 bazel mod deps
```bazel:mod-tidy job to ignore lockfile changes (#45129)1 parent 997d49f commit 8855774
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments