builder-next: Don't return error from exported callback

This is only a callback that notifies about event so there is no way to
react to the error.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski
2024-06-27 17:31:44 +02:00
parent f3d377e422
commit bce76d486e
2 changed files with 2 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ import (
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
type ImageExportedByBuildkit = func(ctx context.Context, id string, desc ocispec.Descriptor) error
type ImageExportedByBuildkit = func(ctx context.Context, id string, desc ocispec.Descriptor)
// Wraps the containerimage exporter's Resolve method to apply moby-specific
// overrides to the exporter attributes.

View File

@@ -10,7 +10,6 @@ import (
// This is used to log the image creation event for untagged images.
// When no tag is given, buildkit doesn't call the image service so it has no
// way of knowing the image was created.
func (daemon *Daemon) ImageExportedByBuildkit(ctx context.Context, id string, desc ocispec.Descriptor) error {
func (daemon *Daemon) ImageExportedByBuildkit(ctx context.Context, id string, desc ocispec.Descriptor) {
daemon.imageService.LogImageEvent(id, id, "create")
return nil
}