[Chore]: Inconsistent wasm-pack binary invocation in justfile breaks cross-platform execution
Author: SayandevxyzCreated Sep 28, 2026Updated Sep 28, 2026
LabelsC-bugS-awaiting-triage
Bug Description
Description
In justfile, the euclid-wasm recipe uses wasm-pack build \, whereas the payment-link-wasm recipe hardcodes ~/.cargo/bin/wasm-pack build \.
This causes execution failures:
- On Windows environments where tilde (
~) path expansion is unsupported. - For developers or CI environments where
wasm-packis installed via Homebrew, npm, system package managers, or where$CARGO_HOMEis customized.
Expected Behavior
All recipes in justfile should invoke wasm-pack consistently via wasm-pack build \.
Expected Behavior
Both WASM recipes in justfile (euclid-wasm and payment-link-wasm) should invoke wasm-pack consistently using wasm-pack build \.
Actual Behavior
Running just payment-link-wasm on Windows or non-standard cargo paths fails:
The system cannot find the path specified: '~/.cargo/bin/wasm-pack'
Steps To Reproduce
- On Windows or an environment without
~/.cargo/bin/wasm-pack(e.g. system-installed wasm-pack or custom CARGO_HOME). - Run
just payment-link-wasm. - The command fails because
~/.cargo/bin/wasm-packcannot be found.
Context For The Bug
Developers building or testing WASM components across different operating systems encounter recipe failures.
Environment
- OS: Windows / cross-platform
- File:
justfile - Recipe:
payment-link-wasm
Have you spent some time checking if this bug has been raised before?
- I checked and didn't find a similar issue
Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
Are you willing to submit a PR?
None
Source: juspay/hyperswitch