From 9cba54232684b3ed373caff5f1bec0ee6da29d24 Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Thu, 4 Jul 2024 23:18:58 -0700 Subject: [PATCH] chore: update readme --- README.md | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9a53adc..e96e032 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,15 @@ Rules for manipulating your Bazel workspace ## Install -```python -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +Add to your `MODULE.bazel` file: -http_archive( +```python +bazel_dep(name = "bzlws") +git_override( name = "bzlws", - strip_prefix = "bzlws-f929e5380f441f50a77776d34a7df8cacdbdf986", - url = "https://github.com/zaucy/bzlws/archive/f929e5380f441f50a77776d34a7df8cacdbdf986.zip", - sha256 = "5bebb821b158b11d81dd25cf031b5b26bae97dbb02025df7d0e41a262b3a030b", + remote = "https://github.com/zaucy/bzlws.git", + commit = "80c1bb3227579e134cdb8bdcfc245581fbfcd566", ) - -load("@bzlws//:repo.bzl", "bzlws_deps") -bzlws_deps() ``` On windows runfiles aren't enabled by default. `bzlws` needs runfiles in order to work. Enable them by adding this to your `.bazelrc`: @@ -24,7 +21,7 @@ On windows runfiles aren't enabled by default. `bzlws` needs runfiles in order t build --enable_runfiles ``` -See [Documentation](docs/index.md) for usage +See [Documentation](docs/README.md) for usage ## License