Skip to content

Commit

Permalink
test(bzlmod): enable testing the MODULE.bazel.lock breakage across pl…
Browse files Browse the repository at this point in the history
…atforms
  • Loading branch information
aignas committed Aug 21, 2024
1 parent 1150765 commit 7a4a565
Show file tree
Hide file tree
Showing 4 changed files with 8,682 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ tasks:
name: "examples/bzlmod: Ubuntu, minimum Bazel"
working_directory: examples/bzlmod
platform: ubuntu2004
build_flags:
- "--lockfile_mode=update"
test_flags:
- "--lockfile_mode=update"
coverage_flags:
- "--lockfile_mode=update"
integration_test_bzlmod_ubuntu:
<<: *reusable_build_test_all
<<: *coverage_targets_example_bzlmod
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ user.bazelrc
# MODULE.bazel.lock is ignored for now as per recommendation from upstream.
# See https://github.com/bazelbuild/bazel/issues/20369
MODULE.bazel.lock
!/examples/bzlmod/MODULE.bazel.lock
4 changes: 4 additions & 0 deletions examples/bzlmod/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
common --enable_bzlmod

# Update the lockfile by running:
# bazel mod deps --lockfile_mode=update
common --lockfile_mode=error

coverage --java_runtime_version=remotejdk_11

test --test_output=errors --enable_runfiles
Expand Down
Loading

0 comments on commit 7a4a565

Please sign in to comment.