Skip to content

appstore: resolve bundles by canonical platform (darwin/arm64 ⇄ macos-arm64)#305

Closed
Alexgodoroja wants to merge 1 commit into
mainfrom
platform-alias-resolver
Closed

appstore: resolve bundles by canonical platform (darwin/arm64 ⇄ macos-arm64)#305
Alexgodoroja wants to merge 1 commit into
mainfrom
platform-alias-resolver

Conversation

@Alexgodoroja

Copy link
Copy Markdown
Collaborator

Follow-up to #296. The bundles-map resolver only matched the exact Go key darwin/arm64, but the org/openclaw/homebrew convention is macos-arm64 (linux-x86_64, etc.). So a macOS-silicon node couldn't find the silicon bundle if the catalogue used the friendly name — the openclaw-agent report.

canonicalPlatform() folds every convention (darwin/arm64, macos-arm64, macos-arm, aarch64-darwin, linux-x86_64, …) to os/arch; resolveBundle matches the host against each key by canonical form (exact Go key still fast-pathed for back-compat). Tests: fold table + alias-keyed resolution.

@Alexgodoroja Alexgodoroja requested a review from TeoSlayer as a code owner June 21, 2026 22:15
…-arm64)

Catalogues and tooling across the org use 'macos-arm64'/'linux-x86_64' (homebrew,
sdk-swift, openclaw), but resolveBundle only matched the exact Go string
'darwin/arm64'. macOS-silicon nodes (incl. openclaw agents) therefore couldn't
find the silicon bundle even when it was published under a friendly key.

Add canonicalPlatform() folding every convention (darwin/arm64, macos-arm64,
macos-arm, aarch64-darwin, linux-x86_64, …) to os/arch, and match the host
against each bundles-map key by canonical form (exact Go key still fast-pathed
for back-compat). Tests cover the fold table + alias-keyed resolution.
@Alexgodoroja

Copy link
Copy Markdown
Collaborator Author

Closing as redundant for the Sixtyfour fix. The fix (#306, app-template#27) uses canonical 'darwin/arm64' keys, which stock v1.12.1 resolves without this change — proven on macOS arm64. canonicalPlatform alias-folding (darwin/arm64 ⇄ macos-arm64) is a nice-to-have for catalogues keyed by the org/openclaw convention; can revisit later if needed. Branch kept.

@Alexgodoroja Alexgodoroja deleted the platform-alias-resolver branch June 21, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant