Skip to content

Commit

Permalink
chore: add bzlmod installation instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
ffortier committed Feb 22, 2024
1 parent e60134d commit e6ef2b2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ Those dependencies must be installed in the WORKSPACE
* [Skylib](https://github.com/bazelbuild/bazel-skylib)
* [Python Rules](https://github.com/bazelbuild/rules_python)

bzlmod usage (until it's available in the registry)

```starlark
bazel_dep(name = "rules_opa", version = <version>)

git_override(
module_name = "rules_opa",
commit = <commit>,
remote = "https://github.com/ticketmaster/rules_opa",
)
```

Legacy workspace

```starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

Expand Down

0 comments on commit e6ef2b2

Please sign in to comment.