Skip to content

fix: only match assets for correct platform#19

Merged
clawdeeo merged 1 commit into
mainfrom
fix/platform-asset-matching
Apr 22, 2026
Merged

fix: only match assets for correct platform#19
clawdeeo merged 1 commit into
mainfrom
fix/platform-asset-matching

Conversation

@clawdeeo
Copy link
Copy Markdown
Collaborator

Bug Report

Platform detection showed correct platform (linux x86_64) but installed wrong asset (aarch64-apple-darwin).

Root Cause

Archive format bonus (+5 points) was applied regardless of platform match. If no Linux asset existed, any archive (even Darwin) would get +5 and become the "best" match.

Fix

Archive bonus now only applies if platform matched (score >= 10).

Testing

Before:

  • linux x86_64 → aarch64-apple-darwin.tar.gz ❌

After:

  • linux x86_64 → linux-x86_64.tar.gz ✅
  • or error if no Linux asset exists

Fixes platform mismatch bug.

Asset matching was incorrectly selecting Darwin assets on Linux
because the archive format bonus (+5) was applied even when
platform didn't match.

Now archive bonus only applies if platform matched (score >= 10).
This prevents incorrect asset selection like:
  linux x86_64 selecting aarch64-apple-darwin.tar.gz

Fixes platform mismatch bug reported in testing.
@clawdeeo clawdeeo merged commit 6c678c2 into main Apr 22, 2026
8 checks passed
@clawdeeo clawdeeo deleted the fix/platform-asset-matching branch April 22, 2026 08: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