Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkgs/id/examples/roc-chat/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ $WASM_OPT -Os --all-features roc-chat.wasm -o roc-chat.wasm.opt
mv roc-chat.wasm.opt roc-chat.wasm
$WASM_TOOLS strip roc-chat.wasm -o roc-chat.wasm.stripped
mv roc-chat.wasm.stripped roc-chat.wasm
"${WASM_TOOLS}" validate roc-chat.wasm

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve command-prefix expansion when invoking validation

When wasm-tools is absent from both PATH and /nix/store, these scripts set WASM_TOOLS="nix run nixpkgs#wasm-tools --". Unlike the existing strip invocation, the new quoted expansion treats that entire string as a single executable name, so an otherwise successful build exits with command-not-found instead of validating the artifact. Both roc-chat/build.sh and roc-grid/build.sh introduce this regression. Preserve support for the command-prefix fallback when invoking validation, either consistently with the existing invocation or by representing the command as an array.

Useful? React with 👍 / 👎.

echo "Built roc-chat.wasm (import-free Roc world module)"
1 change: 1 addition & 0 deletions pkgs/id/examples/roc-grid/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ $WASM_OPT -Os --all-features roc-grid.wasm -o roc-grid.wasm.opt
mv roc-grid.wasm.opt roc-grid.wasm
$WASM_TOOLS strip roc-grid.wasm -o roc-grid.wasm.stripped
mv roc-grid.wasm.stripped roc-grid.wasm
"${WASM_TOOLS}" validate roc-grid.wasm
echo "Built roc-grid.wasm (import-free Roc world module)"
Loading