fix(legacy): remove go armv6→arm backport; Node classifier expects armv6

The Node classifier maps armv6l filenames → armv6, so the cache should
emit armv6 not arm. The previous backport predates the armv6l→armv6
normalizeGoArch fix and is no longer needed.
This commit is contained in:
AJ ONeal
2026-03-11 15:20:23 -06:00
parent 8d6134eee2
commit 9a391adfe5

View File

@@ -75,7 +75,6 @@ func (a Asset) toLegacy() LegacyAsset {
// - solaris/illumos → sunos (Node.js only knows "sunos") // - solaris/illumos → sunos (Node.js only knows "sunos")
// //
// Package-specific rules replicate per-package overrides in production's releases.js: // Package-specific rules replicate per-package overrides in production's releases.js:
// - go: armv6 → arm (Go dist API uses bare "arm"; prod keeps it as-is)
// - ffmpeg: Windows .gz → .exe (prod releases.js: rel.ext = 'exe') // - ffmpeg: Windows .gz → .exe (prod releases.js: rel.ext = 'exe')
func legacyFieldBackport(pkg string, a Asset) Asset { func legacyFieldBackport(pkg string, a Asset) Asset {
// Global OS normalization: Node.js uses "sunos" for both Solaris and Illumos. // Global OS normalization: Node.js uses "sunos" for both Solaris and Illumos.
@@ -84,10 +83,6 @@ func legacyFieldBackport(pkg string, a Asset) Asset {
} }
switch pkg { switch pkg {
case "go":
if a.Arch == "armv6" {
a.Arch = "arm"
}
case "ffmpeg": case "ffmpeg":
if a.OS == "windows" { if a.OS == "windows" {
switch a.Format { switch a.Format {