Skip to content

Commit 9673d12

Browse files
pybind11_abseil authorscopybara-github
authored andcommitted
Clarify README around Bzlmod use.
PiperOrigin-RevId: 607462173
1 parent dfb81fe commit 9673d12

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,24 @@ pybind11_abseil can be built with Bazel or CMake. Instructions for both are belo
2525

2626
#### Bzlmod
2727

28-
You can depend on the Bazel module and dependencies via a single command in your MODULE.bazel:
28+
You can depend on the Bazel module and dependencies via one of the following commands in your MODULE.bazel:
2929

30+
To depend on a release:
3031
```
3132
bazel_dep(
3233
name = "pybind11_abseil",
33-
version = "selected_version",
34+
version = "<selected_version>",
35+
)
36+
```
37+
38+
To depend on floating master:
39+
```
40+
git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
41+
42+
git_repository(
43+
name = "pybind11_abseil",
44+
remote = "https://github.com/pybind/pybind11_abseil.git",
45+
branch = "master",
3446
)
3547
```
3648

0 commit comments

Comments
 (0)