workspace: define bzl_library.
... so it can be used for docs generation.
Test: TH
Bug: 240531712
Change-Id: I8a01591106e552b09f5f0a61d23e258f948d5187
diff --git a/workspace/BUILD b/workspace/BUILD
index 410a6b5..c8bc792 100644
--- a/workspace/BUILD
+++ b/workspace/BUILD
@@ -11,3 +11,17 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
+load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
+
+bzl_library(
+ name = "workspace",
+ srcs = [
+ "external.bzl",
+ # The Bazel prebuilt is not updated to define
+ # @bazel_tools//tools/build_defs/repo:lib,
+ # so using sources directly for now.
+ "@bazel_tools//tools:bzl_srcs",
+ ],
+ visibility = ["//visibility:public"],
+)