From aed701007ebc25df45e50f161eca73d37739df45 Mon Sep 17 00:00:00 2001 From: James Wainwright Date: Wed, 12 Jun 2024 11:29:54 +0100 Subject: [PATCH] Update README on bzlmod usage --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 869822a..5352e84 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,16 @@ load("@lowrisc_lint//rules:pip.bzl", "lowrisc_misc_linters_pip_dependencies") lowrisc_misc_linters_pip_dependencies() ``` +If using `bzlmod`, instead add the following to `MODULE.bazel`: + +```bazel +bazel_dep("lowrisc_misc_linters") +git_override( + module_name = "lowrisc_misc_linters", + remote = "https://github.com/lowRISC/misc-linters", +) +``` + and then in a BUILD file, like the root: ```bazel