-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Open
Copy link
Description
Context
vite-plus needs to ship NAPI bindings for Linux musl targets (linux-x64-musl, linux-arm64-musl) to support Alpine/Docker environments. However, the build fails because fspy_preload_unix produces a cdylib which is not supported on musl targets:
error: cannot produce cdylib for `fspy_preload_unix` as the target `x86_64-unknown-linux-musl` does not support these crate types
This blocks voidzero-dev/vite-plus#992 and voidzero-dev/vite-plus#995.
Expected
vite-task should be buildable for musl targets, either by:
- Conditionally disabling
fspy_preload_unixcdylib on musl targets - Providing an alternative implementation for musl
- Making the preload functionality optional
References
- vite-plus fails to resolve native binding @voidzero-dev/vite-plus-linux-x64-musl when installed with Bun in Docker (Alpine/musl) vite-plus#992 — users unable to run
vp buildin Alpine/Docker - feat: add Linux musl target support for NAPI bindings vite-plus#995 — PR blocked by this issue
- feat: add Linux musl target support for NAPI bindings vite-plus#995 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackPriority
None yet
Start date
None yet
Target date
None yet
Effort
None yet