mirror of
https://github.com/containers/skopeo.git
synced 2025-09-22 10:27:08 +00:00
Update non-module dependencies
Dependabot was apparently not picking these up (and several haven't had a release for a long time anyway). Also move from github.com/go-check/check to its newly declared (and go.mod-enforced) name gopkg.in/check.v1. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
7
vendor/github.com/opencontainers/image-tools/image/layout.go
generated
vendored
7
vendor/github.com/opencontainers/image-tools/image/layout.go
generated
vendored
@@ -48,14 +48,13 @@ func layoutValidate(w walker) error {
|
||||
return fmt.Errorf("index.json is a directory")
|
||||
}
|
||||
|
||||
var index v1.Index
|
||||
buf, err := ioutil.ReadAll(r)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "error reading index.json")
|
||||
}
|
||||
|
||||
if err := json.Unmarshal(buf, &index); err != nil {
|
||||
return errors.Wrap(err, "index.json format mismatch")
|
||||
if err := schema.ValidatorMediaTypeImageIndex.Validate(bytes.NewReader(buf)); err != nil {
|
||||
return errors.Wrap(err, "index.json validation failed")
|
||||
}
|
||||
|
||||
return nil
|
||||
@@ -74,7 +73,7 @@ func layoutValidate(w walker) error {
|
||||
}
|
||||
|
||||
if err := schema.ValidatorMediaTypeLayoutHeader.Validate(bytes.NewReader(buf)); err != nil {
|
||||
return errors.Wrap(err, "oci-layout: imageLayout validation failed")
|
||||
return errors.Wrap(err, "oci-layout validation failed")
|
||||
}
|
||||
|
||||
if err := json.Unmarshal(buf, &imageLayout); err != nil {
|
||||
|
Reference in New Issue
Block a user