Skip to content

Commit

Permalink
chore: enable unnamed-macro buildifier check (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored Oct 3, 2023
1 parent 27d7a1f commit 8e17eff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ repos:
- id: buildifier
- id: buildifier-lint
args:
- --warnings=-provider-params,-unnamed-macro
- --warnings=-provider-params
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ my_sh_config = repository_rule(
)

# Used by WORKSPACE
def sh_configure():
def sh_configure(name = "my_local_config_sh"):
"""Detect the local shell interpreter and register its toolchain."""
my_sh_config(name = "my_local_config_sh")
native.register_toolchains("@my_local_config_sh//:local_sh_toolchain")
my_sh_config(name)
native.register_toolchains("@{}//:local_sh_toolchain".format(name))

# Used by MODULE.bazel
my_sh_config_extension = module_extension(
Expand Down

0 comments on commit 8e17eff

Please sign in to comment.