fix(legacy): revert universal2 expansion; Node side will handle via WATERFALL

Expanding universal2 into aarch64+x86_64 entries creates filename/arch
mismatches: the filename still contains 'universal' so the Node classifier
re-parses it as universal2, then sees arch=aarch64 and flags a mismatch.
Keep universal2 as-is; the Node agent will add it to their WATERFALL.
This commit is contained in:
AJ ONeal
2026-03-11 15:06:49 -06:00
parent dfae22745b
commit 8debd4e631

View File

@@ -154,18 +154,6 @@ func ExportLegacy(pkg string, pd PackageData) (LegacyCache, LegacyDropStats) {
stats.Formats++
continue
}
// universal2 (macOS fat binary) → expand to aarch64 + x86_64.
// Node.js doesn't know "universal2"; emitting both arches ensures
// the binary is found for both Apple Silicon and Intel Mac clients.
if a.Arch == "universal2" {
arm := a
arm.Arch = "aarch64"
releases = append(releases, arm.toLegacy())
intel := a
intel.Arch = "x86_64"
releases = append(releases, intel.toLegacy())
continue
}
releases = append(releases, a.toLegacy())
}
if releases == nil {