Skip to content

third_party/setup.py: fix wabt platform detection on Linux#8526

Merged
kripken merged 1 commit intoWebAssembly:mainfrom
BilelGho:fix-wabt-platform-detection
Mar 26, 2026
Merged

third_party/setup.py: fix wabt platform detection on Linux#8526
kripken merged 1 commit intoWebAssembly:mainfrom
BilelGho:fix-wabt-platform-detection

Conversation

@BilelGho
Copy link
Contributor

@BilelGho BilelGho commented Mar 26, 2026

wabt changed its release asset naming convention in version 1.0.39. On Linux, the old name ubuntu no longer matches the new names linux-x64 / linux-arm64, causing setup.py to silently fail with an empty download URL and crash with ValueError: unknown url type: ''.

The fix mirrors the existing style for macos and windows — returning a prefix that matches the asset name via the existing regex.

@BilelGho BilelGho requested a review from a team as a code owner March 26, 2026 13:00
@BilelGho BilelGho requested review from stevenfontanella and removed request for a team March 26, 2026 13:00
@BilelGho BilelGho force-pushed the fix-wabt-platform-detection branch 2 times, most recently from c6bbf6d to 5d6a791 Compare March 26, 2026 13:09
@BilelGho BilelGho changed the title third_party/setup.py: fix wabt platform detection third_party/setup.py: fix wabt platform detection on Linux Mar 26, 2026
wabt changed its release asset naming convention in 1.0.39. On Linux,
the old name 'ubuntu' no longer matches the new names 'linux-x64' and
'linux-arm64', causing setup.py to silently fail with an empty download
URL.
@BilelGho BilelGho force-pushed the fix-wabt-platform-detection branch from 5d6a791 to 8091b37 Compare March 26, 2026 15:05
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I didn't remember we had this script...

@kripken kripken enabled auto-merge (squash) March 26, 2026 16:25
@kripken kripken merged commit 29b2d42 into WebAssembly:main Mar 26, 2026
16 checks passed
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.

2 participants