From 8debd4e631b741c6b5816cd390bffb09c07e9a7e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 11 Mar 2026 15:06:49 -0600 Subject: [PATCH] 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. --- internal/storage/legacy.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/internal/storage/legacy.go b/internal/storage/legacy.go index 8bfff8b..a468451 100644 --- a/internal/storage/legacy.go +++ b/internal/storage/legacy.go @@ -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 {