mirror of
https://github.com/project-zot/zot.git
synced 2025-01-20 22:52:51 -05:00
fix(errors): remove direct dependency on 'github.com/pkg/errors' (#1275)
Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
parent
ed01292ad2
commit
ddbb56178e
1 changed files with 1 additions and 2 deletions
|
@ -9,7 +9,6 @@ import (
|
||||||
|
|
||||||
godigest "github.com/opencontainers/go-digest"
|
godigest "github.com/opencontainers/go-digest"
|
||||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
"github.com/pkg/errors"
|
|
||||||
|
|
||||||
zerr "zotregistry.io/zot/errors"
|
zerr "zotregistry.io/zot/errors"
|
||||||
"zotregistry.io/zot/pkg/extensions/config"
|
"zotregistry.io/zot/pkg/extensions/config"
|
||||||
|
@ -105,7 +104,7 @@ func (linter *Linter) CheckMandatoryAnnotations(repo string, manifestDigest godi
|
||||||
string(manifestDigest), string(configDigest), missingAnnotations)
|
string(manifestDigest), string(configDigest), missingAnnotations)
|
||||||
linter.log.Error().Msg(msg)
|
linter.log.Error().Msg(msg)
|
||||||
|
|
||||||
return false, errors.WithMessage(zerr.ErrImageLintAnnotations, msg)
|
return false, fmt.Errorf("%s: %w", msg, zerr.ErrImageLintAnnotations)
|
||||||
}
|
}
|
||||||
|
|
||||||
return true, nil
|
return true, nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue