distro: add containers arg to ImageType.Manifest
This is the first step to support embedding container images. Here we add the `containers []container.Spec` argument to supply images with resolved container specifications. For now all distros will return an error in case a container is actually supplied since none of them currently support embedding containers. NB: also no apis or tools will actually resolve containers.
This commit is contained in:
parent
f8804358a4
commit
7f3f016ed1
21 changed files with 95 additions and 62 deletions
|
|
@ -307,7 +307,7 @@ func generateManifest(ctx context.Context, workers *worker.Server, depsolveJobID
|
|||
return
|
||||
}
|
||||
|
||||
manifest, err := imageType.Manifest(b, options, repos, depsolveResults.PackageSpecs, seed)
|
||||
manifest, err := imageType.Manifest(b, options, repos, depsolveResults.PackageSpecs, nil, seed)
|
||||
if err != nil {
|
||||
reason := "Error generating manifest"
|
||||
jobResult.JobError = clienterrors.WorkerClientError(clienterrors.ErrorManifestGeneration, reason)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue