(architecture: string | undefined)
| 4 | * @returns Normalized architecture string (amd64, arm64, arm, or original if not recognized) |
| 5 | */ |
| 6 | export function normalizeDockerArchitecture(architecture: string | undefined): string { |
| 7 | if (!architecture) { |
| 8 | return "amd64"; // default fallback |
| 9 | } |
| 10 | |
| 11 | // Return original if not one of the standard architectures |
| 12 | return architecture; |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Normalizes Docker platform OS name |
no outgoing calls
no test coverage detected