Skip to content
Discussion options

You must be logged in to vote

Writing outside of the output root is generally counter to Bazel's architecture, especially since rules may be run more than once if there are multiple configurations.

e.g. if your build has two configurations (even just debug vs release), these two must write to separate files, otherwise you'll either end up with indetermined state in the file or Bazel will refuse to continue due to the same output path being produced by two different actions.

What would be the use case for needing to write to an alternative location?

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@c4milo
Comment options

Answer selected by c4milo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants