fix(Bun.SQL) fix MySQL execution on windows (#22696)

### What does this PR do?
Fixes https://github.com/oven-sh/bun/issues/22695
Fixes https://github.com/oven-sh/bun/issues/22654

### How did you verify your code works?
Added mysql:9 + run mysql tests on windows

<img width="1035" height="708"
alt="489727987-3cca2da4-0ff8-4b4a-b5be-9fbdd1c9862d"
src="https://github.com/user-attachments/assets/02c6880d-547e-43b5-8af8-0b7c895c6166"
/>
This commit is contained in:
Ciro Spaciari
2025-09-17 08:46:23 -07:00
committed by GitHub
parent 661deb8eaf
commit d85207f179
5 changed files with 33 additions and 29 deletions

View File

@@ -863,7 +863,7 @@ export function isDockerEnabled(): boolean {
}
try {
const info = execSync(`${dockerCLI} info`, { stdio: ["ignore", "pipe", "inherit"] });
const info = execSync(`"${dockerCLI}" info`, { stdio: ["ignore", "pipe", "inherit"] });
return info.toString().indexOf("Server Version:") !== -1;
} catch {
return false;
@@ -919,7 +919,7 @@ export async function describeWithContainer(
return;
}
const { arch, platform } = process;
if ((archs && !archs?.includes(arch)) || platform === "win32") {
if (archs && !archs?.includes(arch)) {
test.skip(`docker image is not supported on ${platform}/${arch}, skipped: ${image}`, () => {});
return false;
}