Browse Source

pkg/compose: pull: use native multi-errors

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Sebastiaan van Stijn 3 months ago
parent
commit
51499f645b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      pkg/compose/pull.go

+ 1 - 2
pkg/compose/pull.go

@@ -34,7 +34,6 @@ import (
 	"github.com/docker/docker/api/types/image"
 	"github.com/docker/docker/client"
 	"github.com/docker/docker/pkg/jsonmessage"
-	"github.com/hashicorp/go-multierror"
 	"github.com/opencontainers/go-digest"
 	"golang.org/x/sync/errgroup"
 
@@ -152,7 +151,7 @@ func (s *composeService) pull(ctx context.Context, project *types.Project, opts
 	if opts.IgnoreFailures {
 		return nil
 	}
-	return multierror.Append(nil, pullErrors...).ErrorOrNil()
+	return errors.Join(pullErrors...)
 }
 
 func imageAlreadyPresent(serviceImage string, localImages map[string]api.ImageSummary) bool {