Skip to content

Commit

Permalink
Run buildifier over the directory. (#235)
Browse files Browse the repository at this point in the history
Using the 1.0 release.

```
buildifier -r .
```
  • Loading branch information
thomasvl committed Feb 18, 2020
1 parent 0a934a9 commit add8e42
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions WORKSPACE
Expand Up @@ -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")

maybe(
repo_rule = http_archive,
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",
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")
Expand All @@ -31,8 +31,8 @@ load("//:internal_setup.bzl", "bazel_skylib_internal_setup")
bazel_skylib_internal_setup()

maybe(
repo_rule = http_archive,
name = "rules_cc",
repo_rule = http_archive,
sha256 = "b4b2a2078bdb7b8328d843e8de07d7c13c80e6c89e86a09d6c4b424cfd1aaa19",
strip_prefix = "rules_cc-cb2dfba6746bfa3c3705185981f3109f0ae1b893",
urls = [
Expand Down
2 changes: 1 addition & 1 deletion internal_setup.bzl
Expand Up @@ -15,4 +15,4 @@
"""Setup function that must be invoked before running skylib tests."""

def bazel_skylib_internal_setup():
pass # placeholder function for the federation
pass # placeholder function for the federation
1 change: 1 addition & 0 deletions lib/new_sets.bzl
Expand Up @@ -36,6 +36,7 @@ def _make(elements = None):
Returns:
A set containing the passed in values.
"""

# If you change the structure of a set, you need to also update the _is_set method
# in types.bzl.
elements = elements if elements else []
Expand Down
1 change: 1 addition & 0 deletions lib/unittest.bzl
Expand Up @@ -344,6 +344,7 @@ def _fail(env, msg):
msg: The message to log describing the failure.
"""
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.
# buildifier: disable=print
print(full_msg)
Expand Down

0 comments on commit add8e42

Please sign in to comment.