aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Furr <wfurr@google.com>2024-05-08 09:08:49 -0700
committerCopybara-Service <copybara-worker@google.com>2024-05-08 09:09:39 -0700
commit40bb9f213f33dc84365ac87127b4a20aa19bfaca (patch)
tree9755313bebe4144c08021ec48cff09b0f26b74fd
parent88e9722a16230bf8e732382c59e4b6ef1156f226 (diff)
downloadink-stroke-modeler-upstream-main.tar.gz
Update workspace configuration documentation to no longer reference deletedupstream-main
workspace.bzl file and suggest bzlmod setup instead. PiperOrigin-RevId: 631820943
-rw-r--r--README.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/README.md b/README.md
index 58fa855..45f0d7d 100644
--- a/README.md
+++ b/README.md
@@ -26,23 +26,23 @@ bazel test ...
```
To use Ink Stroke Modeler in another Bazel project, put the following in the
-`WORKSPACE` file to download the code from GitHub head and set up dependencies:
+`MODULE.bazel` file to download the code from GitHub head and set up
+dependencies:
```bazel
-load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
+git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "ink_stroke_modeler",
remote = "https://github.com/google/ink-stroke-modeler.git",
branch = "main",
)
-load("@ink_stroke_modeler//:workspace.bzl", "ink_stroke_modeler_workspace")
-ink_stroke_modeler_workspace()
```
-If you want to depend on a specific version, you can change the options passed
-to [`git_repository`](https://bazel.build/rules/lib/repo/git#git_repository). Or
-if you want to use a local checkout of Ink Stroke Modeler instead, use the
+If you want to depend on a specific version, you can specify a commit in
+[`git_repository`](https://bazel.build/rules/lib/repo/git#git_repository)
+instead of a branch. Or if you want to use a local checkout of Ink Stroke
+Modeler instead, use the
[`local_repository`](https://bazel.build/reference/be/workspace#local_repository)
workspace rule instead of `git_repository`.