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 fc58d8e
Show file tree
Hide file tree
Showing 25 changed files with 4,058 additions and 20 deletions.
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
755 changes: 755 additions & 0 deletions bzlmod/01-depend_on_bazel_module/MODULE.bazel.lock

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions bzlmod/01-depend_on_bazel_module/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ This is an example on how to introduce dependencies on Bazel modules in the MODU
To test it out, `cd` into this directory and run the following:

```bash
export USE_BAZEL_VERSION=last_green
bazelisk build --enable_bzlmod //:main
GLOG_logtostderr=1 ./bazel-bin/main
GLOG_logtostderr=1 bazel run main
```
1 change: 1 addition & 0 deletions bzlmod/02-override_bazel_module/.bazelrc
1 change: 1 addition & 0 deletions bzlmod/02-override_bazel_module/.bazelversion
Loading

0 comments on commit fc58d8e

Please sign in to comment.