fix: expose catalog identity as a sha256 content digest

This commit is contained in:
2026-08-11 19:25:04 +02:00
parent 82b5453c88
commit ad3c3125a8
2 changed files with 3 additions and 2 deletions
@@ -354,6 +354,7 @@ export async function renderActiveWorkspaceRuntime(options: {
const snapshotPath = options.registry.snapshotPath(revision.commit, revision.id);
const descriptorSource = await readFileAsync(snapshotPath, "utf8");
const workspace = parseWorkspaceYaml(descriptorSource);
const catalogSource = await repository.readCatalog(revision.commit);
const rendered = renderWorkspaceRuntimeFromWorkspace({
workspace,
workspaceId: revision.id,
@@ -369,7 +370,7 @@ export async function renderActiveWorkspaceRuntime(options: {
...rendered,
snapshotPath,
descriptorBlob: `sha256:${createHash("sha256").update(descriptorSource).digest("hex")}`,
catalogBlob: (await repository.catalogBlob(revision.commit)).trim(),
catalogBlob: `sha256:${createHash("sha256").update(catalogSource).digest("hex")}`,
};
}