-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasm-pack build
errors in a Docker container, but only on MacOS
#1416
Comments
Might relate to #913 |
wasm-pack build
fails to complete in a Docker container only on MacOSwasm-pack build
errors in a Docker container, but only on MacOS
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 |
`wasm-pack build` 0.13.0 fails to build on aarch64 containers, like Alpine's CI. Apparently it's solved by installing rustc-dev. Fixes rustwasm/wasm-pack#1416
🐛 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
The text was updated successfully, but these errors were encountered: