Skip to content

Not working on Windows Server 2022 #72

@petamoriken

Description

@petamoriken

It may be a problem with the execution environment, but when I run vite with this plugin on Windows Server 2022, it fails because the execFile argument does not seem to pass to id correctly.

const output = await new Promise<string | null>((resolve, reject) => {
execFile(DENO_BINARY, ["info", "--json", id], { cwd }, (error, stdout) => {
if (error) {
if (String(error).includes("Integrity check failed")) {
reject(error);
} else {
resolve(null);
}
} else resolve(stdout);
});
});

result:

{
  version: 1,
  denoVersion: "2.3.6",
  denoDir: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno",
  modulesCache: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno\\remote",
  npmCache: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno\\npm",
  typescriptCache: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno\\gen",
  registryCache: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno\\registries",
  originStorage: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno\\location_data",
  webCacheStorage: "C:\\Users\\GITLAB~1\\AppData\\Local\\Temp\\deno_cache"
}

I have written a patch to replace exec, but it hangs in that case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions