#14479·hyperswitch

[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:

  1. On Windows environments where tilde (~) path expansion is unsupported.
  2. For developers or CI environments where wasm-pack is installed via Homebrew, npm, system package managers, or where $CARGO_HOME is 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

  1. On Windows or an environment without ~/.cargo/bin/wasm-pack (e.g. system-installed wasm-pack or custom CARGO_HOME).
  2. Run just payment-link-wasm.
  3. The command fails because ~/.cargo/bin/wasm-pack cannot 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?

Are you willing to submit a PR?

None