Skip to content

Commit 8520f99

Browse files
manuelcandalesclaude
authored andcommitted
Windows wheels: fix git SSL backend for submodule update (#18252)
Use OpenSSL instead of Windows schannel to avoid SSL errors when initializing the tokenizers submodule on Windows CI, matching the fix applied to other Windows workflows in #18137. Co-authored-by: Claude <claude@anthropic.com> (cherry picked from commit 3172e5e)
1 parent a718846 commit 8520f99

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.ci/scripts/wheel/pre_build_script.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ fi
2626
# we should update the core job in test-infra to enable long paths before
2727
# checkout to avoid needing to do this.
2828
pushd extension/llm/tokenizers
29-
git submodule update --init
29+
UNAME_S=$(uname -s)
30+
if [[ $UNAME_S == *"MINGW"* || $UNAME_S == *"MSYS"* ]]; then
31+
git -c http.sslBackend=openssl submodule update --init
32+
else
33+
git submodule update --init
34+
fi
3035
popd
3136

3237
# On Windows, enable symlinks and re-checkout the current revision to create

0 commit comments

Comments
 (0)