Skip to content

Commit ddbb561

Browse files
fix(errors): remove direct dependency on 'github.com/pkg/errors' (#1275)
Signed-off-by: Laurentiu Niculae <[email protected]>
1 parent ed01292 commit ddbb561

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/extensions/lint/lint.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99

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

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

108-
return false, errors.WithMessage(zerr.ErrImageLintAnnotations, msg)
107+
return false, fmt.Errorf("%s: %w", msg, zerr.ErrImageLintAnnotations)
109108
}
110109

111110
return true, nil

0 commit comments

Comments
 (0)