Skip to content

Commit ddc12ea

Browse files
authored
chore: update refs to bazel-lib which moved to bazel-contrib (#1976)
1 parent bf92a04 commit ddc12ea

9 files changed

+13
-13
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ copied to this location.
165165
Our custom rules will take care of copying their sources to the `bazel-bin` output folder automatically.
166166
However this only works when those sources are under the same `BUILD` file as the target that does
167167
the copying. If you have a source file in another `BUILD` file, you'll need to explicitly copy that
168-
with a rule like [`copy_to_bin`](https://docs.aspect.build/aspect-build/bazel-lib/v1.0.0/docs/copy_to_bin-docgen.html#copy_to_bin).
168+
with a rule like [`copy_to_bin`](https://docs.aspect.build/bazel-contrib/bazel-lib/v1.0.0/docs/copy_to_bin-docgen.html#copy_to_bin).
169169

170170
**API docs:**
171171

docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ my-workspace/
152152

153153
Note that when following option 2, it might require updating some configuration files which refer to the original output locations. For example, your `tsconfig.json` file might have a `paths` section which points to the `../../dist` folder.
154154

155-
To keep your legacy build system working during the migration, you might want to avoid changing those configuration files in-place. For this purpose, you can use [the `jq` rule](https://docs.aspect.build/aspect-build/bazel-lib/v1.0.0/docs/jq-docgen.html#jq) in place of `copy_to_bin`, using a `filter` expression so the copy of the configuration file in `bazel-bin` that's used by the Bazel build can have a different path than the configuration file in the source tree.
155+
To keep your legacy build system working during the migration, you might want to avoid changing those configuration files in-place. For this purpose, you can use [the `jq` rule](https://docs.aspect.build/bazel-contrib/bazel-lib/v1.0.0/docs/jq-docgen.html#jq) in place of `copy_to_bin`, using a `filter` expression so the copy of the configuration file in `bazel-bin` that's used by the Bazel build can have a different path than the configuration file in the source tree.

docs/js_binary.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js_run_binary.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pnpm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ npm_translate_lock(
219219
```
220220

221221
Patching applied by rules_js may slightly deviate from standard pnpm patching behavior.
222-
The [bazel-lib patch util](https://docs.aspect.build/rulesets/aspect_bazel_lib/docs/repo_utils/#patch)
222+
The [bazel-lib patch util](https://github.com/bazel-contrib/bazel-lib/blob/main/docs/repo_utils.md#patch)
223223
is used for patching within rules_js instead of the internal pnpm patching mechanism.
224224
For example a bad patch file may be partially applied when using pnpm outside of bazel but fail
225225
when applied by rules_js, see [rules_js #1915](https://github.com/aspect-build/rules_js/issues/1915).
@@ -374,7 +374,7 @@ The tradeoffs are similar to
374374
[this rules_python thread](https://github.com/bazelbuild/rules_python/issues/608).
375375

376376
In a BUILD file, use a rule like
377-
[write_source_files](https://github.com/aspect-build/bazel-lib/blob/main/docs/write_source_files.md)
377+
[write_source_files](https://github.com/bazel-contrib/bazel-lib/blob/main/docs/write_source_files.md)
378378
to copy the generated file to the repo and test that it stays updated:
379379

380380
```starlark

js/private/js_binary.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ _ATTRS = {
109109
This must be a target that provides a single file or a `DirectoryPathInfo`
110110
from `@aspect_bazel_lib//lib::directory_path.bzl`.
111111
112-
See https://github.com/aspect-build/bazel-lib/blob/main/docs/directory_path.md
112+
See https://github.com/bazel-contrib/bazel-lib/blob/main/docs/directory_path.md
113113
for more info on creating a target that provides a `DirectoryPathInfo`.
114114
""",
115115
mandatory = True,

js/private/js_run_binary.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Runs a js_binary as a build action.
22
3-
This macro wraps Aspect bazel-lib's run_binary (https://github.com/aspect-build/bazel-lib/blob/main/lib/run_binary.bzl)
3+
This macro wraps Aspect bazel-lib's run_binary (https://github.com/bazel-contrib/bazel-lib/blob/main/lib/run_binary.bzl)
44
and adds attributes and features specific to rules_js's js_binary.
55
66
Load this with,
@@ -71,7 +71,7 @@ def js_run_binary(
7171
tool: The tool to run in the action.
7272
7373
Should be a `js_binary` rule. Use Aspect bazel-lib's run_binary
74-
(https://github.com/aspect-build/bazel-lib/blob/main/lib/run_binary.bzl)
74+
(https://github.com/bazel-contrib/bazel-lib/blob/main/lib/run_binary.bzl)
7575
for other *_binary rule types.
7676
7777
env: Environment variables of the action.

js/repositories.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ def rules_js_dependencies():
2525
name = "aspect_bazel_lib",
2626
sha256 = "f93d386d8d0b0149031175e81df42a488be4267c3ca2249ba5321c23c60bc1f0",
2727
strip_prefix = "bazel-lib-2.9.1",
28-
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.9.1/bazel-lib-v2.9.1.tar.gz",
28+
url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v2.9.1/bazel-lib-v2.9.1.tar.gz",
2929
)

js/toolchains.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def rules_js_register_toolchains(
2929
https://docs.aspect.build/rulesets/rules_nodejs/docs/core#node_repositories.
3030
3131
Additional required toolchains (jq, yq, copy_directory and copy_to_directory) come
32-
from [Aspect bazel-lib](https://docs.aspect.build/rulesets/aspect_bazel_lib).
32+
from [Aspect bazel-lib](https://github.com/bazel-contrib/bazel-lib).
3333
3434
Args:
3535
node_download_auth: Auth to use for all url requests when downloading Node

0 commit comments

Comments
 (0)