feat: render revision-bound evidence configuration
This commit is contained in:
@@ -148,6 +148,7 @@ export class ThtRunner {
|
||||
workspace: ReturnType<typeof parseWorkspaceYaml>;
|
||||
workspaceId: string;
|
||||
workspaceRevision: string;
|
||||
revisionContentRoot: string;
|
||||
} {
|
||||
const identity = this.assertWorkspaceSnapshot(path);
|
||||
const fd = openSync(path, fsConstants.O_RDONLY | fsConstants.O_NOFOLLOW);
|
||||
@@ -163,7 +164,7 @@ export class ThtRunner {
|
||||
if (workspace.workspace.id !== identity.workspaceId) {
|
||||
throw new Error("workspace snapshot identity does not match its path");
|
||||
}
|
||||
return { workspace, ...identity };
|
||||
return { workspace, ...identity, revisionContentRoot: dirname(path) };
|
||||
} finally {
|
||||
closeSync(fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user