Trim verification snapshot scope

This commit is contained in:
ejclaw
2026-04-08 03:49:54 +09:00
parent 6907a71483
commit c0f7f2c12d
4 changed files with 114 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ import {
} from './workspace-package-manager.js';
import {
computeVerificationSnapshotId,
isVerificationSnapshotExcludedName,
isVerificationSnapshotExcludedPath,
resolveVerificationResponsesDir,
} from '../shared/verification-snapshot.js';
@@ -95,8 +95,8 @@ export function buildVerificationCommand(
};
}
function shouldExcludePath(name: string): boolean {
return isVerificationSnapshotExcludedName(name);
function shouldExcludePath(repoDir: string, source: string): boolean {
return isVerificationSnapshotExcludedPath(repoDir, source);
}
export function computeVerificationSnapshot(
@@ -130,7 +130,7 @@ function copyWorkspaceToScratch(repoDir: string, scratchDir: string): void {
recursive: true,
filter: (source) => {
if (source === repoDir) return true;
return !shouldExcludePath(path.basename(source));
return !shouldExcludePath(repoDir, source);
},
});
}