fix: construct labels relative to calling workspace (#4)
This commit is contained in:
parent
f6b016bdb9
commit
2b43162a76
|
@ -49,9 +49,9 @@ def _to_label(param):
|
|||
if param.startswith(":"):
|
||||
param = param[1:]
|
||||
if native.package_name():
|
||||
return Label("//" + native.package_name()).relative(param)
|
||||
return Label("@//" + native.package_name()).relative(param)
|
||||
else:
|
||||
return Label("//:" + param)
|
||||
return Label("@//:" + param)
|
||||
return Label(param)
|
||||
elif param_type == "Label":
|
||||
return param
|
||||
|
|
Loading…
Reference in New Issue