Skip to content

Commit

Permalink
Update go-dockerlibrary to include docker-library/go-dockerlibrary#19
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Jan 8, 2019
1 parent 79f0bd4 commit e692c19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bashbrew/go/vendor/manifest
Expand Up @@ -10,7 +10,7 @@
{
"importpath": "github.com/docker-library/go-dockerlibrary",
"repository": "https://github.com/docker-library/go-dockerlibrary",
"revision": "dd7d405dfece72f87c382d7c0495ad44235f9ebb",
"revision": "78186ac78fb8c1ce4e0f2f4847ae4d57a69cfcc3",
"branch": "master"
},
{
Expand Down
Expand Up @@ -80,5 +80,12 @@ func ParseLineBased(readerIn io.Reader) (*Manifest2822, error) {
}
}

if len(manifest.Global.Maintainers) < 1 {
return nil, fmt.Errorf("missing Maintainers")
}
if invalidMaintainers := manifest.Global.InvalidMaintainers(); len(invalidMaintainers) > 0 {
return nil, fmt.Errorf("invalid Maintainers: %q (expected format %q)", strings.Join(invalidMaintainers, ", "), MaintainersFormat)
}

return manifest, nil
}

0 comments on commit e692c19

Please sign in to comment.