Open JamieMair opened 3 months ago
Might relate to https://github.com/rustwasm/wasm-pack/issues/913
I'm having similar issues when building kanidm's UI in Alpine's CI containers on aarch64.
Using QEMU instead of a container, works. Using x86_64 for building instead of aarch64, works aswell. Using wasm-pack 0.12.1 works but not 0.13.0. We're using Linux hosts, so I believe this is a aarch64 issue and not specific to macOS.
Maybe it is even Alpine related.
Ah, I guess the error is maybe due to the recent split in Alpine of rustc-dev
. It worked for me to install rustc-dev
and re-run it. I opened a MR at Alpine to address this issue: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/71265
π Bug description
wasm-pack build
fails after[INFO]: Installing wasm-bindgen...
with the error:Our Dockerfile builds with no issues on a Linux host, but the exact same Dockerfile fails on MacOS.
π€ Expected Behavior
The command should run with no issues and produce the npm package in a local directory inside the Docker image.
π Steps to reproduce
Here is a snippet of the Dockerfile used when the issue occurs:
I have tried replacing the
curl
install withbut the same issue happens.
Below is a snippet of the output
π Your environment
Docker Host OS: MacOS (with Apple Silicon CPU) Docker Image OS: Alpine Linux wasm-pack version: Latest (as of 5th August 2024), exact unknown rustc version: 1.79