fix: construct labels relative to calling workspace (#4)

This commit is contained in:
Alex Eagle 2021-11-10 09:11:32 -08:00 committed by GitHub
parent f6b016bdb9
commit 2b43162a76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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