-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subprocesses: customizable SubprocessFactory
Individual SubprocessBuilder instances can now use a SubprocessFactory object other than the static SubprocessBuilder.factory. Also, WindowsSubprocessFactory is no longer a singleton because it now stores state: whether to use windows-style argument escaping or to use the (broken) Bash-style escaping (causing bazelbuild/bazel#7122). These two changes allow: - a safer way to mock out SubprocessFactory in tests, because it's no longer necessary to change global state (i.e. the static SubprocessBuilder.factory member) - testing old and new argument escaping semantics in WindowsSubprocessTest - adding a flag that switches between old and new semantics in the SubprocessFactory, and thus allows rolling out the bugfix with just a flag flip See bazelbuild/bazel#7122 PiperOrigin-RevId: 234105692
- Loading branch information
Luca Di Grazia
committed
Sep 4, 2022
1 parent
4bc71c8
commit adb478e
Showing
5 changed files
with
188 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.