-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buildozer: Cannot print path
of a local_path_override
rule
#1286
Comments
You can work around this by temporarily renaming the attribute:
(using a command file would be more efficient) |
Thanks for the hint, much appreciated. |
Since no alternative came up, I will use your solution @fmeum and close this ticket. |
I think this is a valid issue. I'd suggest to keep the issue open. |
I have a
MODULE.bazel
file with alocal_path_override
:When I run
buildozer 'print module_name path' //MODULE.bazel:%local_path_override
to get the value of the two attributes, I get:test_module /home/user/MODULE.bazel
This is wrong: the second part should be
./modules/test_module
.This is because
path
is a builtin special attribute referring to the absolute path to the BUILD file that contains the rules.https://github.com/bazelbuild/buildtools/blob/main/buildozer/README.md#print-commands
Is this a bug or is there an alternate way of doing this ?
The text was updated successfully, but these errors were encountered: