Skip to content

Commit 987026f

Browse files
authored
chore: point documentation link to bcr
1 parent bf2330d commit 987026f

File tree

8 files changed

+7
-37
lines changed

8 files changed

+7
-37
lines changed

BUILD.bazel

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,6 @@ bzl_library(
122122
deps = ["@bazel_skylib//:bzl_library"],
123123
)
124124

125-
bzl_library(
126-
name = "deps",
127-
srcs = ["deps.bzl"],
128-
visibility = ["//visibility:public"],
129-
deps = [
130-
"@bazel_tools//tools/build_defs/repo:cache.bzl",
131-
"@bazel_tools//tools/build_defs/repo:http.bzl",
132-
"@gazelle//:deps",
133-
],
134-
)
135-
136125
# Place the .vale.ini file in bazel-bin so the relative path it contains
137126
# StylesPath = tools/lint/vale
138127
# will work when it's run as an action.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Base Starlark libraries and basic Bazel rules which are useful for constructing rulesets and BUILD files.
44

5+
📚 API documentation: https://registry.bazel.build/modules/bazel_lib
6+
57
## Relationship to bazel-skylib
68

79
This module depends on [bazel-skylib](https://github.com/bazelbuild/bazel-skylib).

bzl_library.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
33
Drop-in replacement for bzl_library in bazel_skylib, with exceptions:
44
- We support .bzl and .star extensions, while bzl_library accepts .bzl and .scl.
5+
- Generates [starlark_doc_extract](https://bazel.build/versions/8.3.0/reference/be/general#starlark_doc_extract)
6+
targets, one for each element of `srcs`, ensuring that the sources list all their dependencies.
7+
Fixes https://github.com/bazelbuild/bazel-skylib/issues/568
58
"""
69

710
load("@bazel_skylib//:bzl_library.bzl", "StarlarkLibraryInfo")

lib/copy_directory.bzl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ there are two caveats to consider when using this feature:
1212
can be added.
1313
2. Caching: Changes to only the modified time will not re-trigger cached actions. This can
1414
be worked around by using a clean build when these types of changes occur. For tests the
15-
[external tag](https://bazel.build/reference/be/common-definitions) can be used but this
16-
will result in tests never being cached.
15+
[external tag](https://bazel.build/reference/be/common-definitions) can be used but this will result in tests never being cached.
1716
"""
1817

1918
load(

lib/private/bats.bzl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ bats_test = rule(
9595
"env": attr.string_dict(
9696
doc = """Environment variables of the action.
9797
98-
Subject to [$(location)](https://bazel.build/reference/be/make-variables#predefined_label_variables)
99-
and ["Make variable"](https://bazel.build/reference/be/make-variables) substitution.
98+
Subject to [$(location)](https://bazel.build/reference/be/make-variables#predefined_label_variables) and ["Make variable"](https://bazel.build/reference/be/make-variables) substitution.
10099
""",
101100
),
102101
"_runfiles": attr.label(default = "@bazel_tools//tools/bash/runfiles"),

lib/tests/BUILD.bazel

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"tests for libs"
22

33
load("@bazel_features//:features.bzl", "bazel_features")
4-
load("@bazel_lib//:bzl_library.bzl", "bzl_library")
54
load("@bazel_skylib//rules:write_file.bzl", "write_file")
65
load("@rules_shell//shell:sh_test.bzl", "sh_test")
76
load("//lib:expand_template.bzl", "expand_template")
@@ -71,9 +70,3 @@ assert_contains(
7170
actual = "expand_template_test.sh",
7271
expected = "stuff",
7372
)
74-
75-
bzl_library(
76-
name = "generate_outputs",
77-
srcs = ["generate_outputs.bzl"],
78-
visibility = ["//visibility:public"],
79-
)

lib/tests/copy_to_directory_bin_action/BUILD.bazel

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
load("@bazel_lib//:bzl_library.bzl", "bzl_library")
21
load("//lib:copy_directory.bzl", "copy_directory")
32
load("//lib:copy_to_bin.bzl", "copy_to_bin")
43
load("//lib:diff_test.bzl", "diff_test")
@@ -60,9 +59,3 @@ diff_test(
6059
# RBE not happy with the symlinks in this test case
6160
tags = ["no-remote"],
6261
)
63-
64-
bzl_library(
65-
name = "other_info",
66-
srcs = ["other_info.bzl"],
67-
visibility = ["//visibility:public"],
68-
)

lib/tests/stamping/BUILD.bazel

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
load("@bazel_lib//:bzl_library.bzl", "bzl_library")
21
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
32
load("//lib:run_binary.bzl", "run_binary")
43
load(":stamp_aware_rule.bzl", "my_stamp_aware_rule")
@@ -34,10 +33,3 @@ run_binary(
3433
stamp = -1,
3534
tool = "stamper",
3635
)
37-
38-
bzl_library(
39-
name = "stamp_aware_rule",
40-
srcs = ["stamp_aware_rule.bzl"],
41-
visibility = ["//visibility:public"],
42-
deps = ["//lib:stamping"],
43-
)

0 commit comments

Comments
 (0)