Skip to content

Commit e6ef2b2

Browse files
committed
chore: add bzlmod installation instruction
1 parent e60134d commit e6ef2b2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ Those dependencies must be installed in the WORKSPACE
1616
* [Skylib](https://github.com/bazelbuild/bazel-skylib)
1717
* [Python Rules](https://github.com/bazelbuild/rules_python)
1818

19+
bzlmod usage (until it's available in the registry)
20+
21+
```starlark
22+
bazel_dep(name = "rules_opa", version = <version>)
23+
24+
git_override(
25+
module_name = "rules_opa",
26+
commit = <commit>,
27+
remote = "https://github.com/ticketmaster/rules_opa",
28+
)
29+
```
30+
31+
Legacy workspace
32+
1933
```starlark
2034
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2135

0 commit comments

Comments
 (0)