fix(util): hide plugin Git console windows on Windows (#55475)

This commit is contained in:
Filip
2026-10-16 00:45:40 +02:00
committed by GitHub
Unverified
parent 17229d24f5
commit d0f3204619
+9 -1
View File
@@ -215,6 +215,7 @@ const layer = Layer.effect(
...(input.update ? { preferOnline: true, noGitRevCache: true } : {}),
// Audit reports are unused here, but Arborist waits for them before completing an install.
audit: false,
windowsHide: true,
}
const arborist = new Arborist({
...options,
@@ -372,7 +373,14 @@ const layer = Layer.effect(
if (!installed)
return yield* new InstallFailedError({ dir: root, cause: new Error(`Package is not installed: ${pkg}`) })
const { manifest, resolve } = yield* Effect.promise(() => import("pacote"))
const options = { ...(yield* NpmConfig.load(root)), preferOnline: true, noGitRevCache: true, ignoreScripts: true }
const options = {
...(yield* NpmConfig.load(root)),
preferOnline: true,
noGitRevCache: true,
ignoreScripts: true,
// Pacote spawns Git directly rather than through AppProcess.
windowsHide: true,
}
const available = yield* Effect.tryPromise({
try: async () =>
target.type === "git" ? gitRevision(await resolve(pkg, options)) : (await manifest(pkg, options)).version,