Skip to content

Commit 151d9f8

Browse files
committed
simplify
1 parent 7627060 commit 151d9f8

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ bzl_library(
6161
name = "bzl_library",
6262
srcs = ["bzl_library.bzl"],
6363
deps = [
64-
"@bazel_features//:features",
6564
"//rules/private:bzl_library",
6665
],
6766
)

bzl_library.bzl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ load(
2020
_StarlarkLibraryInfo = "StarlarkLibraryInfo",
2121
_bzl_library = "bzl_library",
2222
)
23-
load("@bazel_features//:features.bzl", "bazel_features")
2423

2524
StarlarkLibraryInfo = _StarlarkLibraryInfo
2625

@@ -49,9 +48,7 @@ def bzl_library(name, srcs = [], deps = [], **kwargs):
4948
**kwargs
5049
)
5150

52-
# Detect starlark_doc_extract
53-
# TODO: use symbol introduced in https://github.com/bazel-contrib/bazel_features/pull/99
54-
if bazel_features.proto.starlark_proto_info:
51+
if hasattr(native, "starlark_doc_extract"):
5552
for i, src in enumerate(srcs):
5653
native.starlark_doc_extract(
5754
name = "{}.doc_extract{}".format(name, i if i > 0 else ""),

0 commit comments

Comments
 (0)