You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the above, the_test is unbuildable because the execution of hello.sh fails. The problem is that $(location :hello.sh) expands to simply hello.sh which cannot be resolved given a sane PATH (where a "sane path" means a set of directories that does not include the current directory for security reasons; see #958).
A possible fix would be to prefix all relative paths emitted by $(location) with ./. A worse fix (because it wouldn't be consistent in all cases) would be to do so only for outputs composed of a single path component. I don't know what the implications of doing any of these two would be.
The text was updated successfully, but these errors were encountered:
Consider the following workspace:
Given the above,
the_test
is unbuildable because the execution ofhello.sh
fails. The problem is that$(location :hello.sh)
expands to simplyhello.sh
which cannot be resolved given a sanePATH
(where a "sane path" means a set of directories that does not include the current directory for security reasons; see #958).A possible fix would be to prefix all relative paths emitted by
$(location)
with./
. A worse fix (because it wouldn't be consistent in all cases) would be to do so only for outputs composed of a single path component. I don't know what the implications of doing any of these two would be.The text was updated successfully, but these errors were encountered: