Run buildifier over the directory. (#235)
Using the 1.0 release. ``` buildifier -r . ```
This commit is contained in:
parent
0a934a997d
commit
add8e42934
|
@ -4,10 +4,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||||
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
|
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
|
||||||
|
|
||||||
maybe(
|
maybe(
|
||||||
repo_rule = http_archive,
|
|
||||||
name = "bazel_federation",
|
name = "bazel_federation",
|
||||||
url = "https://github.com/bazelbuild/bazel-federation/releases/download/0.0.1/bazel_federation-0.0.1.tar.gz",
|
repo_rule = http_archive,
|
||||||
sha256 = "506dfbfd74ade486ac077113f48d16835fdf6e343e1d4741552b450cfc2efb53",
|
sha256 = "506dfbfd74ade486ac077113f48d16835fdf6e343e1d4741552b450cfc2efb53",
|
||||||
|
url = "https://github.com/bazelbuild/bazel-federation/releases/download/0.0.1/bazel_federation-0.0.1.tar.gz",
|
||||||
)
|
)
|
||||||
|
|
||||||
load("@bazel_federation//:repositories.bzl", "bazel_skylib_deps")
|
load("@bazel_federation//:repositories.bzl", "bazel_skylib_deps")
|
||||||
|
@ -31,8 +31,8 @@ load("//:internal_setup.bzl", "bazel_skylib_internal_setup")
|
||||||
bazel_skylib_internal_setup()
|
bazel_skylib_internal_setup()
|
||||||
|
|
||||||
maybe(
|
maybe(
|
||||||
repo_rule = http_archive,
|
|
||||||
name = "rules_cc",
|
name = "rules_cc",
|
||||||
|
repo_rule = http_archive,
|
||||||
sha256 = "b4b2a2078bdb7b8328d843e8de07d7c13c80e6c89e86a09d6c4b424cfd1aaa19",
|
sha256 = "b4b2a2078bdb7b8328d843e8de07d7c13c80e6c89e86a09d6c4b424cfd1aaa19",
|
||||||
strip_prefix = "rules_cc-cb2dfba6746bfa3c3705185981f3109f0ae1b893",
|
strip_prefix = "rules_cc-cb2dfba6746bfa3c3705185981f3109f0ae1b893",
|
||||||
urls = [
|
urls = [
|
||||||
|
|
|
@ -36,6 +36,7 @@ def _make(elements = None):
|
||||||
Returns:
|
Returns:
|
||||||
A set containing the passed in values.
|
A set containing the passed in values.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# If you change the structure of a set, you need to also update the _is_set method
|
# If you change the structure of a set, you need to also update the _is_set method
|
||||||
# in types.bzl.
|
# in types.bzl.
|
||||||
elements = elements if elements else []
|
elements = elements if elements else []
|
||||||
|
|
|
@ -344,6 +344,7 @@ def _fail(env, msg):
|
||||||
msg: The message to log describing the failure.
|
msg: The message to log describing the failure.
|
||||||
"""
|
"""
|
||||||
full_msg = "In test %s: %s" % (env.ctx.attr._impl_name, msg)
|
full_msg = "In test %s: %s" % (env.ctx.attr._impl_name, msg)
|
||||||
|
|
||||||
# There isn't a better way to output the message in Starlark, so use print.
|
# There isn't a better way to output the message in Starlark, so use print.
|
||||||
# buildifier: disable=print
|
# buildifier: disable=print
|
||||||
print(full_msg)
|
print(full_msg)
|
||||||
|
|
Loading…
Reference in New Issue