From 070398b9ac9e23a1a0fa48d596a58fbfdb910cf5 Mon Sep 17 00:00:00 2001 From: Chongyi Zheng Date: Wed, 26 Jun 2024 20:29:33 -0400 Subject: [PATCH] Provide comment for fallback block for arm64 Signed-off-by: Chongyi Zheng --- compare.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compare.go b/compare.go index df803d6..317e945 100644 --- a/compare.go +++ b/compare.go @@ -124,10 +124,11 @@ func platformVector(platform specs.Platform) []specs.Platform { } } + // All arm64/v8.x and arm64/v9.x are compatible with arm/v8 (32-bits) and below. + // There's no arm64 v9 variant, so it's normalized to v8. if strings.HasPrefix(variant, "v8.") || strings.HasPrefix(variant, "v9.") { variant = "v8" } - vector = append(vector, platformVector(specs.Platform{ Architecture: "arm", OS: platform.OS,