Basel's way out

How do I get the absolute path from which the sandbox worker will run from skylark?

I have a set of rules where I need to add an argument to the action command in skylark. The argument is always equivalent to "-fdebug-prefix-map = $ (/ bin / readlink -f.) =.". I need a path so I can teach my tools to delete the sandbox path and leave the relative path. What's the best way to access this path?

+3


source to share


1 answer


As a workaround, you can use a symbolic link blaze-bin

.

However, in general, you cannot (especially if you are using --define

).



You have to wrap your script in a flame rule and use blaze run

.

0


source







All Articles