How can I disable the sandbox in a custom Bazel rule?
I want the sandbox always disabled for every instantiation of this rule, without the user having to do anything.
How can I disable the sandbox in a custom Bazel rule?
I want the sandbox always disabled for every instantiation of this rule, without the user having to do anything.
Copyright © 2021 Jogjafile Inc.
When creating actions in the rule implementation, include the
execution_requirementsdict argument containing ano-sandboxkey with a value of1. This forces the action to never run in the sandbox.See the
tagsattribute on the documentation for common build attributes for more information on these tags/requirements.