container: add ListDigest to the spec

Add the ListDigest to the container Spec struct and all its copies so we
can store list digests when they are available and pass them on to the
appropriate osbuild stages, sources, and inputs.

Copy the value whenever a spec is moved to a different representation.
This commit is contained in:
Achilleas Koutsou 2023-03-17 15:19:41 +01:00
parent c95072d686
commit a7dd8ff94f
5 changed files with 17 additions and 12 deletions

View file

@ -42,11 +42,12 @@ func (impl *ContainerResolveJobImpl) Run(job worker.Job) error {
} else {
for i, spec := range specs {
result.Specs[i] = worker.ContainerSpec{
Source: spec.Source,
Name: spec.LocalName,
TLSVerify: spec.TLSVerify,
ImageID: spec.ImageID,
Digest: spec.Digest,
Source: spec.Source,
Name: spec.LocalName,
TLSVerify: spec.TLSVerify,
ImageID: spec.ImageID,
Digest: spec.Digest,
ListDigest: spec.ListDigest,
}
}
}