platforms: add support for matching amd64 variants
Correctly matches optional variants for amd64 arch. These should be used for standardized values v1-v4 from https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels. V1 remains the default and is cleared by default. Pulling a higher variant will match the highest available platform lower or equal to the provided one when platformVector is used. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
@@ -86,9 +86,11 @@ func normalizeArch(arch, variant string) (string, string) {
|
||||
case "i386":
|
||||
arch = "386"
|
||||
variant = ""
|
||||
case "x86_64", "x86-64":
|
||||
case "x86_64", "x86-64", "amd64":
|
||||
arch = "amd64"
|
||||
variant = ""
|
||||
if variant == "v1" {
|
||||
variant = ""
|
||||
}
|
||||
case "aarch64", "arm64":
|
||||
arch = "arm64"
|
||||
switch variant {
|
||||
|
||||
Reference in New Issue
Block a user