diff options
author | William Furr <wfurr@google.com> | 2024-05-08 09:08:49 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-05-08 09:09:39 -0700 |
commit | 40bb9f213f33dc84365ac87127b4a20aa19bfaca (patch) | |
tree | 9755313bebe4144c08021ec48cff09b0f26b74fd | |
parent | 88e9722a16230bf8e732382c59e4b6ef1156f226 (diff) | |
download | ink-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.md | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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`. |