Hi
Is `bazel build --nobuild -s //target` enough?
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAP01z6JqcuQg%2B_DvVJ_CABDYquOvVVfn1r4QfWv5Y1QcRusGXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Not exactly sure what your question is, but --compile_one_dependency might be handy.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAN3hOS8f7ZquzBEQZmUkpF00ozFyR3kzsLN3-W7TkR3y9ErZqA%40mail.gmail.com.
-s only prints the command when it's about to be run. If you specify --nobuild, the build isn't done, so -s has no effect. We could make it a warning to specify -s with --nobuild :)
Very hacky solution to the wrapper script approach: don't use sandboxing, and have the script get its options from some other hard-coded file that Bazel doesn't know about. Then you can modify the flags however you wish in that other file and redo just one action.