mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user