Skip to content

fix(extension): replace broken wasm-pack installer URL with cargo install#86

Merged
jserv merged 1 commit intosysprog21:mainfrom
JackKuo-tw:fix/wasm-pack-install-url
May 8, 2026
Merged

fix(extension): replace broken wasm-pack installer URL with cargo install#86
jserv merged 1 commit intosysprog21:mainfrom
JackKuo-tw:fix/wasm-pack-install-url

Conversation

@JackKuo-tw
Copy link
Copy Markdown
Contributor

@JackKuo-tw JackKuo-tw commented May 6, 2026

Problem

extension/build-wasm.sh points users to a broken URL when wasm-pack is not found:

wasm-pack is required. Install it from https://rustwasm.github.io/wasm-pack/installer/

That URL returns 404. The alternative https://wasm-bindgen.github.io/wasm-pack/installer/ resolves but its shell installer script is broken:

sh: line 35: ORIG_ARGS[@]: unbound variable

Fix

Since Rust (and therefore cargo) is already a prerequisite for building this project, cargo install wasm-pack is the most reliable installation method and requires no extra tooling. The extension README already uses this exact command.

Change the error message to:

wasm-pack is required. Install it with: cargo install wasm-pack

Closes #85


Summary by cubic

Replaced the broken wasm-pack installer URL in extension/build-wasm.sh with a direct cargo install command to give a reliable setup path and match the README. Prevents build failures when wasm-pack is missing.

  • Bug Fixes
    • On missing wasm-pack, print: "wasm-pack is required. Install it with: cargo install wasm-pack"

Written for commit e905b63. Summary will update on new commits.

…tall

The rustwasm.github.io/wasm-pack/installer/ URL returns 404. The
alternative wasm-bindgen.github.io URL resolves but its shell installer
fails with "ORIG_ARGS[@]: unbound variable".

Since cargo is already required to build this project, direct users to
"cargo install wasm-pack" instead — consistent with the extension README.

Fixes: sysprog21#85

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
Copy Markdown
Contributor

@doggy8088 doggy8088 left a comment

Choose a reason for hiding this comment

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

LGTM

@jserv jserv merged commit 9b977ca into sysprog21:main May 8, 2026
5 checks passed
@jserv
Copy link
Copy Markdown
Contributor

jserv commented May 8, 2026

Thank @JackKuo-tw for contributing!

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.

fix(extension): stale wasm-pack installer URL in build-wasm.sh

3 participants