Skip to content

Commit

Permalink
chore: update bzlmod example
Browse files Browse the repository at this point in the history
- set the bazel version rather than recommend 'floating' last green
- recommend enabling bzlmod in .bazelrc
- simplify 'try it' commands
- MODULE.bazel.lock files now produced since it's bazel 6.3
  • Loading branch information
alexeagle committed Sep 22, 2023
1 parent b3414e8 commit 93838b9
Show file tree
Hide file tree
Showing 26 changed files with 4,058 additions and 32 deletions.
12 changes: 0 additions & 12 deletions .bazelci/bzlmod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,18 @@ tasks:
name: "Depend on Bazel module"
platform: ${{ all_platform }}
working_directory: ../bzlmod/01-depend_on_bazel_module
build_flags:
- "--enable_bzlmod"
build_targets:
- "//:main"
02-override_bazel_module:
name: "Override Bazel module"
platform: ${{ all_platform }}
working_directory: ../bzlmod/02-override_bazel_module
build_flags:
- "--enable_bzlmod"
build_targets:
- "//:main"
03-introduce_dependencies_with_module_extension:
name: "Introduce dependencies with module extension"
platform: ${{ all_platform }}
working_directory: ../bzlmod/03-introduce_dependencies_with_module_extension
build_flags:
- "--enable_bzlmod"
build_targets:
- "//:city_count"
- "//:emoji_count"
Expand All @@ -34,23 +28,17 @@ tasks:
environment:
MY_SHELL_BIN_PATH: /foo/bar/sh
working_directory: ../bzlmod/04-local_config_and_register_toolchains
build_flags:
- "--enable_bzlmod"
build_targets:
- "//:get_sh_path"
05-integrate_third_party_package_manager:
name: "Integrate third party package manager"
platform: ${{ all_platform }}
working_directory: ../bzlmod/05-integrate_third_party_package_manager
build_flags:
- "--enable_bzlmod"
build_targets:
- "//:check_books"
06-specify_dev_dependency:
name: "Specify dev dependency"
platform: ${{ all_platform }}
working_directory: ../bzlmod/06-specify_dev_dependency
build_flags:
- "--enable_bzlmod"
build_targets:
- "//:check_books"
1 change: 1 addition & 0 deletions bzlmod/01-depend_on_bazel_module/.bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
common --enable_bzlmod
1 change: 1 addition & 0 deletions bzlmod/01-depend_on_bazel_module/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.3.0
Loading

0 comments on commit 93838b9

Please sign in to comment.