Skip to content

Commit 9d94e7c

Browse files
committed
Use maybe for WORKSPACE @bazel_worker_{api,java}
Adds an extra layer of security that we won't clobber any other repos of the same name.
1 parent 4daa608 commit 9d94e7c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scala/private/macros/workspace_compat.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@ def workspace_compat():
4949
strip_prefix = "bazel-worker-api-0.0.5",
5050
)
5151

52-
_alias_repo(
52+
maybe(
53+
_alias_repo,
5354
name = "bazel_worker_api",
5455
aliases = {
5556
"worker_protocol_proto": "@bazel-worker-api//proto:worker_protocol_proto",
5657
},
5758
)
5859

59-
_alias_repo(
60+
maybe(
61+
_alias_repo,
6062
name = "bazel_worker_java",
6163
aliases = {
6264
"worker_protocol_java_proto": "@bazel-worker-api//java:worker_protocol_java_proto",

0 commit comments

Comments
 (0)