How do I lock the Bazel filesystem sandbox?

Bazel's default sandbox allows read access to /

. How can I limit this even more? For example. I would like the leaky tests to access a directory /search

.

There was a flag --sandbox_block_path

but was removed in 0.5.

+3


source to share


1 answer


Thanks for reporting that removing this feature is a problem for you. I found a way to make it work reliably on Linux and macOS and put it back. The code review has already been sent to a colleague. I will make sure he gets to Basel 0.5.



+6


source







All Articles