To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-dev/CABsbf%3DF-xdMiQdXV7tyQnDsn4s6O9k8buH97dXrku5hQ7k%3DFaQ%40mail.gmail.com.
Thanks for feedback Michajlo!
Regarding non-determinism:
/Ulrik
Hi Tony and Austin,
The idea is not only about executing scripts, but also generating bazel options from those scripts in powerful and flexible way.
Example of .sh scripts generating bazelrc textual fragments:
.bazelrc contains:
import aaa.bazelrc
execute bbb.sh
import some/other/component/ccc.bazelrc
some/other/component/ccc.bazelrc contains:
execute ddd.sh
import eee.bazelrc
Benefits:
With your suggestion, how would options generated from scripts outside bazel, be passed to bazel? I assume that simply passing them as command line options (e.g. to bazel-real) would lose the benefits above, or do you see a way to still fulfill them?
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-dev/CACpMnusq1M%2BwKUEGOHbBvdLw-y9nq%3D7Zv2BYhTk6h4p7wsN-jg%40mail.gmail.com.
Thanks for feedback Michajlo!
Regarding non-determinism:
- I’m thinking that If a script would change flags or input files, in a way that would affect the final artifacts, that would be detected by the bazel server process and sandbox. Just like such manual changes are detected. Perhaps I’m missing something. What do you have in mind Michajlo?