-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bazel): integration rule using incorrect casing for working dir o…
…f commands The integration rule currently directly takes the Bazel `TEST_TMP_DIR` as directory for the integration test. Bazel will use a lower-case variant of the path on case-insensitive platforms (like Windows). This is acceptable for standard IO operations (as within Bazel), but can unexpectedly break module resolution/or cause subtle differences. We should always normalize the path to an actual case-exact system realpath when setting it as `CWD` for command invocations. This enables the use of e.g. playwright within Bazel integration tests. microsoft/playwright#9193.
- Loading branch information
1 parent
0ef299c
commit afceae0
Showing
5 changed files
with
27 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ ts_library( | |
"@npm//@types/node", | ||
"@npm//@types/tmp", | ||
"@npm//tmp", | ||
"@npm//true-case-path", | ||
], | ||
) | ||
|
||
|
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