bazel_rules_install icon indicating copy to clipboard operation
bazel_rules_install copied to clipboard

Error, not a valid absolute pattern

Open xfap opened this issue 2 years ago • 2 comments

bazel build -c opt //:install_foo -- ~/test but get error message "not a valid absolute pattern (absolute target patterns must start with exactly two slashes): '/home/xxx/test'...." Confused about this, and how could resolve it?

xfap avatar Jul 19 '23 07:07 xfap

Hmm, do you have a reproducible command I could try to debug for you. I think your example isn't "real" if I'm not mistaken.

QuantamHD avatar Jul 19 '23 17:07 QuantamHD

Can you try run instead of build?

bazel run -c opt //:install_foo -- ~/test

bttk avatar Jul 19 '23 18:07 bttk