mirror of
https://github.com/containers/podman.git
synced 2025-12-05 04:40:47 +08:00
Vendor common and buildah main
Update the common and buildah vendor to pull in the platform code move. [NO NEW TESTS NEEDED] Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
This commit is contained in:
3
vendor/github.com/containers/buildah/internal/util/util.go
generated
vendored
3
vendor/github.com/containers/buildah/internal/util/util.go
generated
vendored
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
"github.com/containers/buildah/define"
|
||||
"github.com/containers/common/libimage"
|
||||
lplatform "github.com/containers/common/libimage/platform"
|
||||
"github.com/containers/image/v5/types"
|
||||
"github.com/containers/storage"
|
||||
"github.com/containers/storage/pkg/archive"
|
||||
@@ -41,7 +42,7 @@ func LookupImage(ctx *types.SystemContext, store storage.Store, image string) (*
|
||||
// Wrapper around libimage.NormalizePlatform to return and consume
|
||||
// v1.Platform instead of independent os, arch and variant.
|
||||
func NormalizePlatform(platform v1.Platform) v1.Platform {
|
||||
os, arch, variant := libimage.NormalizePlatform(platform.OS, platform.Architecture, platform.Variant)
|
||||
os, arch, variant := lplatform.Normalize(platform.OS, platform.Architecture, platform.Variant)
|
||||
return v1.Platform{
|
||||
OS: os,
|
||||
Architecture: arch,
|
||||
|
||||
Reference in New Issue
Block a user