mirror of
https://github.com/apple/container.git
synced 2026-09-26 00:51:12 -04:00
Add support for aarch64 architecture alias (#1040)
- Adds `aarch64` as an alias for `arm64` in the `Arch` enum. This addresses the maintainer's request to support this common architecture name, ensuring consistency with `x86_64` normalization and preventing failures for users expecting `aarch64` support.
This commit is contained in:
@@ -44,10 +44,17 @@ struct ArchTests {
|
||||
#expect(arch == .arm64)
|
||||
}
|
||||
|
||||
@Test func testAarch64Alias() throws {
|
||||
let arch = Arch(rawValue: "aarch64")
|
||||
#expect(arch != nil)
|
||||
#expect(arch == .arm64)
|
||||
}
|
||||
|
||||
@Test func testCaseInsensitive() throws {
|
||||
#expect(Arch(rawValue: "AMD64") == .amd64)
|
||||
#expect(Arch(rawValue: "X86_64") == .amd64)
|
||||
#expect(Arch(rawValue: "ARM64") == .arm64)
|
||||
#expect(Arch(rawValue: "AARCH64") == .arm64)
|
||||
#expect(Arch(rawValue: "Amd64") == .amd64)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user