Skip to content

Commit

Permalink
Provide comment for fallback block for arm64
Browse files Browse the repository at this point in the history
Signed-off-by: Chongyi Zheng <git@zcy.dev>
  • Loading branch information
harryzcy committed Jun 27, 2024
1 parent a924c4b commit 0516611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0516611

Please sign in to comment.