Skip to content

Commit bce76d4

Browse files
committed
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 <[email protected]>
1 parent f3d377e commit bce76d4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

builder/builder-next/exporter/wrapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
1212
)
1313

14-
type ImageExportedByBuildkit = func(ctx context.Context, id string, desc ocispec.Descriptor) error
14+
type ImageExportedByBuildkit = func(ctx context.Context, id string, desc ocispec.Descriptor)
1515

1616
// Wraps the containerimage exporter's Resolve method to apply moby-specific
1717
// overrides to the exporter attributes.

daemon/build.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
// This is used to log the image creation event for untagged images.
1111
// When no tag is given, buildkit doesn't call the image service so it has no
1212
// way of knowing the image was created.
13-
func (daemon *Daemon) ImageExportedByBuildkit(ctx context.Context, id string, desc ocispec.Descriptor) error {
13+
func (daemon *Daemon) ImageExportedByBuildkit(ctx context.Context, id string, desc ocispec.Descriptor) {
1414
daemon.imageService.LogImageEvent(id, id, "create")
15-
return nil
1615
}

0 commit comments

Comments
 (0)