Backfill verification install state
This commit is contained in:
@@ -15,6 +15,7 @@ import { resolveGroupIpcPath } from './group-folder.js';
|
||||
import {
|
||||
buildWorkspaceScriptCommand,
|
||||
detectPnpmStorePath,
|
||||
ensureWorkspaceDependenciesInstalled,
|
||||
hasInstalledNodeModules,
|
||||
} from './workspace-package-manager.js';
|
||||
import {
|
||||
@@ -271,6 +272,27 @@ export async function runVerificationRequest(
|
||||
};
|
||||
}
|
||||
|
||||
if (!hasInstalledNodeModules(repoDir)) {
|
||||
try {
|
||||
ensureWorkspaceDependenciesInstalled(repoDir);
|
||||
} catch (error) {
|
||||
return {
|
||||
ok: false,
|
||||
profile: request.profile,
|
||||
command: command.commandText,
|
||||
stdout: '',
|
||||
stderr: '',
|
||||
exitCode: 1,
|
||||
snapshotId: 'unknown',
|
||||
runtimeVersion,
|
||||
error:
|
||||
error instanceof Error
|
||||
? error.message
|
||||
: String(error),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasInstalledNodeModules(repoDir)) {
|
||||
return {
|
||||
ok: false,
|
||||
|
||||
Reference in New Issue
Block a user