Skip to content

Commit ffb51fc

Browse files
committed
Give scala_toolchains_repo a default name argument
This turns out to be helpful when adapting `test_version/WORKSPACE.template` to the toolchainized version of `twitter_scrooge` for testing. In this case, we want `twitter_scooge` to be in its own customized repo, separate from the one generated by `scala_toolchains`. This seems like it might be generally useful when writing module extensions for alternative toolchains.
1 parent 93ff078 commit ffb51fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scala/private/macros/toolchains_repo.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ _scala_toolchains_repo = repository_rule(
2727
},
2828
)
2929

30-
def scala_toolchains_repo(**kwargs):
30+
def scala_toolchains_repo(name = "io_bazel_rules_scala_toolchains", **kwargs):
3131
_scala_toolchains_repo(
32-
name = "io_bazel_rules_scala_toolchains",
32+
name = name,
3333
**kwargs
3434
)
3535

0 commit comments

Comments
 (0)