bazel_rules_install
bazel_rules_install copied to clipboard
Error, not a valid absolute pattern
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?
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.
Can you try run instead of build?
bazel run -c opt //:install_foo -- ~/test