bazelbuild / bazelisk

A user-friendly launcher for Bazel.
Apache License 2.0
1.95k stars 300 forks source link

Exec bazel instead of subprocessing #566

Open aaron-skydio opened 3 months ago

aaron-skydio commented 3 months ago

Instead of running bazel as a subprocess of bazelisk, replace bazelisk with bazel in the same process (in the case when bazelisk is only being used to invoke bazel once and then exit, as opposed to invoking bazel multiple times or post-processing output from bazel). This eliminates several classes of issues.

A couple concrete examples:

syscall.Exec is not supported on windows, so this only applies to linux and macos.