File tree 2 files changed +4
-4
lines changed
bzlmod/04-local_config_and_register_toolchains
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
- id : buildifier
16
16
- id : buildifier-lint
17
17
args :
18
- - --warnings=-provider-params,-unnamed-macro
18
+ - --warnings=-provider-params
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ my_sh_config = repository_rule(
39
39
)
40
40
41
41
# Used by WORKSPACE
42
- def sh_configure ():
42
+ def sh_configure (name = "my_local_config_sh" ):
43
43
"""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 ) )
46
46
47
47
# Used by MODULE.bazel
48
48
my_sh_config_extension = module_extension (
You can’t perform that action at this time.
0 commit comments