2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-12-01 07:15:24 +00:00
bazel-lib/lib/utils.bzl
Aaron Son a4e997de1f
feat: add propagate_common_{,test_,binary_}rule_attributes to lib/utils. (#553)
* feat: add `propagate_common_{,test_,binary_}rule_attributes` to lib/utils.

* lib/private/utils: PR feedback: extract COMMON_BINARY_RULE_ATTRIBUTES and COMMON_TEST_RULE_ATTRIBUTES to global constants.

* lib/private/utils: PR feedback: remove default value for attrs param to propagate_common_*rule_attributes

* fix: lib/private/utils: buildifier.
2023-09-26 14:29:42 -07:00

19 lines
792 B
Python

"Public API"
load("//lib/private:utils.bzl", "utils")
default_timeout = utils.default_timeout
file_exists = utils.file_exists
glob_directories = utils.glob_directories
is_bazel_6_or_greater = utils.is_bazel_6_or_greater
is_bzlmod_enabled = utils.is_bzlmod_enabled
is_external_label = utils.is_external_label
maybe_http_archive = utils.maybe_http_archive
path_to_workspace_root = utils.path_to_workspace_root
propagate_well_known_tags = utils.propagate_well_known_tags
propagate_common_rule_attributes = utils.propagate_common_rule_attributes
propagate_common_test_rule_attributes = utils.propagate_common_test_rule_attributes
propagate_common_binary_rule_attributes = utils.propagate_common_binary_rule_attributes
to_label = utils.to_label
consistent_label_str = utils.consistent_label_str