google / bazel_rules_install

Bazel rules for installing build results. Similar to `make install`.
Apache License 2.0
37 stars 14 forks source link

Error, not a valid absolute pattern #42

Open xfap opened 1 year ago

xfap commented 1 year ago

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?

QuantamHD commented 1 year ago

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.

bttk commented 1 year ago

Can you try run instead of build?

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