Skip to content

Commit 328f950

Browse files
authored
fix: Force install of rollup fallback on s390x (#5836)
Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
1 parent 7d08ba5 commit 328f950

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Containerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
199201
RUN 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

0 commit comments

Comments
 (0)