Skip to content

Commit

Permalink
fix(errors): remove direct dependency on 'github.com/pkg/errors' (#1275)
Browse files Browse the repository at this point in the history
Signed-off-by: Laurentiu Niculae <[email protected]>
  • Loading branch information
laurentiuNiculae authored Mar 20, 2023
1 parent ed01292 commit ddbb561
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/extensions/lint/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

godigest "github.com/opencontainers/go-digest"
ispec "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/pkg/errors"

zerr "zotregistry.io/zot/errors"
"zotregistry.io/zot/pkg/extensions/config"
Expand Down Expand Up @@ -105,7 +104,7 @@ func (linter *Linter) CheckMandatoryAnnotations(repo string, manifestDigest godi
string(manifestDigest), string(configDigest), missingAnnotations)
linter.log.Error().Msg(msg)

return false, errors.WithMessage(zerr.ErrImageLintAnnotations, msg)
return false, fmt.Errorf("%s: %w", msg, zerr.ErrImageLintAnnotations)
}

return true, nil
Expand Down

0 comments on commit ddbb561

Please sign in to comment.