(version: string, platform: string)
| 1129 | } |
| 1130 | |
| 1131 | function dockerImageTagForPlatform(version: string, platform: string): string { |
| 1132 | // Suffix the tag with the arch so amd64 and arm64 images of the same |
| 1133 | // hyperframes version coexist in the local cache (a developer who flips |
| 1134 | // between hosts shouldn't have to rebuild). |
| 1135 | const archSuffix = platform === "linux/arm64" ? "-arm64" : ""; |
| 1136 | return `${dockerImageTag(version)}${archSuffix}`; |
| 1137 | } |
| 1138 | |
| 1139 | function ensureDockerImage(version: string, platform: string, quiet: boolean): string { |
| 1140 | const tag = dockerImageTagForPlatform(version, platform); |
no test coverage detected