Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
katre committed Aug 25, 2023
1 parent f894b39 commit 8819622
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ bazel_skylib_workspace()
#### Recommended: Add Bazel versions to `MODULE.bazel`

Load the `bazel_binaries` extension and specify the Bazel verions to download.
All version specifiers supported by
[Bazelisk](https://github.com/bazelbuild/bazelisk#how-does-bazelisk-know-which-bazel-version-to-run)
are supported.

```python
bazel_binaries = use_extension(
Expand All @@ -91,7 +94,7 @@ bazel_binaries = use_extension(
)
bazel_binaries.download(version_file = "//:.bazelversion")
bazel_binaries.download(version = "6.0.0")
bazel_binaries.download(version = "7.0.0-pre.20230215.2")
bazel_binaries.download(version = "last_green")
use_repo(bazel_binaries, "bazel_binaries")
```

Expand All @@ -106,7 +109,7 @@ load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "bazel_bi
bazel_binaries(versions = [
"//:.bazelversion",
"6.0.0",
"7.0.0-pre.20230215.2",
"last_green",
])
```

Expand Down

0 comments on commit 8819622

Please sign in to comment.