Skip to content

Commit 2b43162

Browse files
authored
fix: construct labels relative to calling workspace (#4)
1 parent f6b016b commit 2b43162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/utils.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def _to_label(param):
4949
if param.startswith(":"):
5050
param = param[1:]
5151
if native.package_name():
52-
return Label("//" + native.package_name()).relative(param)
52+
return Label("@//" + native.package_name()).relative(param)
5353
else:
54-
return Label("//:" + param)
54+
return Label("@//:" + param)
5555
return Label(param)
5656
elif param_type == "Label":
5757
return param

0 commit comments

Comments
 (0)