Assemble generic execution installations from checked artifacts
This commit is contained in:
@@ -19,8 +19,16 @@ const checked = await compiler.loadCheckedArtifactWorld(
|
||||
.update(await readFile(compilerPath))
|
||||
.digest("hex"),
|
||||
);
|
||||
const installation = await compiler.loadExecutionInstallation(
|
||||
plan,
|
||||
roots,
|
||||
createHash("sha256")
|
||||
.update(await readFile(compilerPath))
|
||||
.digest("hex"),
|
||||
);
|
||||
for (const [file, value] of [
|
||||
["execution-world.json", checked.world],
|
||||
["installation.json", installation],
|
||||
["kernel.json", compiler.compileKernelProgram(plan)],
|
||||
["queries.json", compiler.compileQueryProgram(plan)],
|
||||
["execution-artifacts.json", { codec: "camino-checked-execution-v1", roots, manifests: checked.manifests }],
|
||||
|
||||
Reference in New Issue
Block a user