-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buck2: make interaction of cwd & relative exe consistent between UNIX…
… & Windows Summary: If you do `Command::new("a").current_dir("b")` with your cwd being `c`, on UNIX you run `c/b/a`, on Windows you run `c/a`. This is a bit inconsistent, and it means that running Buck2 with a cwd that is not the project root does not work on Windows. This diff fixes that by making the behavior consistent on both platforms. When we run a command, we now check if the executable does exist relative to the cwd, and if it does, we use it. We know we always provide a cwd and it's always absolute, so this is fairly robust. Reviewed By: KapJI Differential Revision: D46440477 fbshipit-source-id: f2c3bf6877de02fe5e783d3a434e417aa6f46f1f
- Loading branch information
1 parent
67f9f35
commit 37f3d25
Showing
4 changed files
with
35 additions
and
4 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