Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
use errors.Join instead of merr
Browse files Browse the repository at this point in the history
Signed-off-by: Thorsten Klein <[email protected]>
  • Loading branch information
iwilltry42 committed Jul 12, 2023
1 parent 0f11605 commit 4bdac8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cosign/cosign.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"net/http"
"strings"

"github.com/acorn-io/baaah/pkg/merr"
v1 "github.com/acorn-io/runtime/pkg/apis/internal.acorn.io/v1"
"github.com/acorn-io/runtime/pkg/images"
"github.com/acorn-io/runtime/pkg/imagesystem"
Expand Down Expand Up @@ -216,7 +215,7 @@ func VerifySignature(ctx context.Context, opts VerifyOpts) error {

err = cosign.NewVerificationError("failed to find valid signature for %s matching given identity and annotations using %d loaded verifiers/keys", opts.ImageRef.String(), len(opts.Verifiers))
err.(*cosign.VerificationError).SetErrorType(cosign.ErrNoMatchingSignaturesType)
logrus.Debugf("%s: %v", err, merr.NewErrors(errs...))
logrus.Debugf("%s: %v", err, errors.Join(errs...))
return err
}

Expand Down

0 comments on commit 4bdac8a

Please sign in to comment.