File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,10 +194,12 @@ RUN npm ci
194194# Vite 8's bundler (rolldown) ships a native NAPI addon per arch; on s390x
195195# that addon segfaults on load (rolldown/napi-rs issue on this niche,
196196# big-endian target). npm skips @rolldown/binding-wasm32-wasi by default
197- # since its cpu field is "wasm32", not "s390x", so install it explicitly and
198- # force rolldown to use the WASI binding instead of the crashing native one.
197+ # since its cpu field is "wasm32", not "s390x". --force is required because
198+ # npm's platform check (EBADPLATFORM) rejects the mismatched cpu field
199+ # regardless of --no-save; --force overrides that check so the WASI binding
200+ # installs and rolldown can use it instead of the crashing native one.
199201RUN if [ "$(uname -m)" = "s390x" ]; then \
200- npm install --no-save @rolldown/binding-wasm32-wasi@1.1.5; \
202+ npm install --no-save --force @rolldown/binding-wasm32-wasi@1.1.5; \
201203 fi
202204
203205# Create directory structure with correct ownership before Vite build
You can’t perform that action at this time.
0 commit comments