mirror of
https://github.com/containers/podman.git
synced 2025-09-28 01:04:28 +08:00
update c/common
Update containers common to the latest HEAD. Some bug fixes in libimage forced us to have a clearer separation between ordinary images and manifest lists. Hence, when looking up manifest lists without recursing into any of their instances, we need to use `LookupManifestList()`. Also account for some other changes in c/common (e.g., the changed order in the security labels). Further vendor the latest HEAD from Buildah which is required to get the bud tests to pass. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
10
vendor/github.com/containers/buildah/util/util.go
generated
vendored
10
vendor/github.com/containers/buildah/util/util.go
generated
vendored
@ -482,3 +482,13 @@ func SortMounts(m []specs.Mount) []specs.Mount {
|
||||
sort.Sort(byDestination(m))
|
||||
return m
|
||||
}
|
||||
|
||||
func VerifyTagName(imageSpec string) (types.ImageReference, error) {
|
||||
ref, err := alltransports.ParseImageName(imageSpec)
|
||||
if err != nil {
|
||||
if ref, err = alltransports.ParseImageName(DefaultTransport + imageSpec); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
return ref, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user