Skip to content

Commit 51499f6

Browse files
thaJeztahndeloof
authored andcommitted
pkg/compose: pull: use native multi-errors
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 5165b0f commit 51499f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/compose/pull.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import (
3434
"github.com/docker/docker/api/types/image"
3535
"github.com/docker/docker/client"
3636
"github.com/docker/docker/pkg/jsonmessage"
37-
"github.com/hashicorp/go-multierror"
3837
"github.com/opencontainers/go-digest"
3938
"golang.org/x/sync/errgroup"
4039

@@ -152,7 +151,7 @@ func (s *composeService) pull(ctx context.Context, project *types.Project, opts
152151
if opts.IgnoreFailures {
153152
return nil
154153
}
155-
return multierror.Append(nil, pullErrors...).ErrorOrNil()
154+
return errors.Join(pullErrors...)
156155
}
157156

158157
func imageAlreadyPresent(serviceImage string, localImages map[string]api.ImageSummary) bool {

0 commit comments

Comments
 (0)