Skip to content

record

const record: (...args: [directory: string, output: string]) => Effect<
{
artifact: {
algorithm: "sha256"
digest: string
entry: string
version: 1
}
entry: string
operations: readonly {
artifact: {
algorithm: "sha256"
digest: string
version: 1
}
identity: string
package: {
name: string
version: string
}
}[]
package: {
name: string
version: string
}
}[],
PlatformError | SchemaError | ArtifactError | PublicationError,
FileSystem | Path
>

Defined in: Publication.ts:184

Writes provenance outside the recorded package so recording does not change its digest.

Parameter Type
…args [directory: string, output: string]

Effect<{ artifact: { algorithm: "sha256"; digest: string; entry: string; version: 1; }; entry: string; operations: readonly { artifact: { algorithm: "sha256"; digest: string; version: 1; }; identity: string; package: { name: string; version: string; }; }[]; package: { name: string; version: string; }; }[], | PlatformError | SchemaError | ArtifactError | PublicationError, FileSystem | Path>