Skip to content

Commit 8e17eff

Browse files
authored
chore: enable unnamed-macro buildifier check (#328)
1 parent 27d7a1f commit 8e17eff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ repos:
1515
- id: buildifier
1616
- id: buildifier-lint
1717
args:
18-
- --warnings=-provider-params,-unnamed-macro
18+
- --warnings=-provider-params

bzlmod/04-local_config_and_register_toolchains/local_config_sh.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ my_sh_config = repository_rule(
3939
)
4040

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

4747
# Used by MODULE.bazel
4848
my_sh_config_extension = module_extension(

0 commit comments

Comments
 (0)