Skip to content

Commit 1d31394

Browse files
redsun82Copilot
andcommitted
Just: fix MSYS2 path conversion for bazel targets on Windows
On Windows Git Bash, MSYS2 converts // prefixes to / when passing arguments to non-MSYS programs, breaking Bazel target labels like //language-packs:foo. Set MSYS2_ARG_CONV_EXCL="*" to disable this. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d59be76 commit 1d31394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/just/build.just

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ _build_dist LANGUAGE: _require_semmle_code (_maybe_build_dist LANGUAGE)
88
# Build the language-specific distribution if we are in an internal repository checkout
99
# Otherwise, do nothing
1010
[no-exit-message]
11-
_maybe_build_dist LANGUAGE: (_if_in_semmle_code (f'cd "$SEMMLE_CODE"; tools/bazel test //language-packs:intree-{{LANGUAGE}}-as-test --test_output=all') '# using codeql from PATH, if any')
11+
_maybe_build_dist LANGUAGE: (_if_in_semmle_code (f'cd "$SEMMLE_CODE"; MSYS2_ARG_CONV_EXCL="*" tools/bazel test //language-packs:intree-{{LANGUAGE}}-as-test --test_output=all') '# using codeql from PATH, if any')
1212

1313
# Call bazel. Uses our official bazel wrapper if we are in an internal repository checkout
1414
[no-cd, no-exit-message]
15-
_bazel COMMAND *ARGS: (_if_in_semmle_code 'cd "$SEMMLE_CODE"; tools/bazel' 'bazel' COMMAND ARGS)
15+
_bazel COMMAND *ARGS: (_if_in_semmle_code 'cd "$SEMMLE_CODE"; MSYS2_ARG_CONV_EXCL="*" tools/bazel' 'bazel' COMMAND ARGS)
1616

1717
# Call sembuild (requires an internal repository checkout)
1818
[no-cd, no-exit-message]

0 commit comments

Comments
 (0)