Skip to content

Commit 95373f4

Browse files
committed
test(bzlmod): enable testing the MODULE.bazel.lock breakage across platforms
1 parent ac02537 commit 95373f4

File tree

4 files changed

+8682
-0
lines changed

4 files changed

+8682
-0
lines changed

.bazelci/presubmit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ tasks:
223223
name: "examples/bzlmod: Ubuntu, minimum Bazel"
224224
working_directory: examples/bzlmod
225225
platform: ubuntu2004
226+
build_flags:
227+
- "--lockfile_mode=update"
228+
test_flags:
229+
- "--lockfile_mode=update"
230+
coverage_flags:
231+
- "--lockfile_mode=update"
226232
integration_test_bzlmod_ubuntu:
227233
<<: *reusable_build_test_all
228234
<<: *coverage_targets_example_bzlmod

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ user.bazelrc
5252
# MODULE.bazel.lock is ignored for now as per recommendation from upstream.
5353
# See https://github.com/bazelbuild/bazel/issues/20369
5454
MODULE.bazel.lock
55+
!/examples/bzlmod/MODULE.bazel.lock

examples/bzlmod/.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
common --enable_bzlmod
22

3+
# Update the lockfile by running:
4+
# bazel mod deps --lockfile_mode=update
5+
common --lockfile_mode=error
6+
37
coverage --java_runtime_version=remotejdk_11
48

59
test --test_output=errors --enable_runfiles

0 commit comments

Comments
 (0)