mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 08:53:13 +00:00
fix(build): align the musl sharp pins with the sharp version
The bump to sharp 0.35.0 left the @img/sharp-linuxmusl-* pins on 0.35.1, so npm nested the 0.35.0 binary under node_modules/sharp while hoisting libvips to the root. The nested .node then looks for libvips-cpp.so.8.18.3 next to itself, finds nothing, and the Alpine image build dies in the client prebuild: Could not load the "sharp" module using the linuxmusl-x64 runtime ERR_DLOPEN_FAILED: Error loading shared library libvips-cpp.so.8.18.3 Neither docker workflow runs on push, so this only surfaces when a release is cut. Pin both binaries to 0.35.0 so they hoist next to libvips again.
This commit is contained in:
+3
-2
@@ -38,9 +38,10 @@
|
||||
"react-dom": "19.2.6",
|
||||
"multer": "^2.2.0"
|
||||
},
|
||||
"comment:optionalDependencies": "The lockfile is generated on glibc, so the musl builds the Alpine image needs never land in it on their own. Keep the @img/* pins on the same version as client's sharp — a mismatch nests the binary away from libvips and the image build dies in generate-icons.",
|
||||
"optionalDependencies": {
|
||||
"@img/sharp-linuxmusl-arm64": "0.35.1",
|
||||
"@img/sharp-linuxmusl-x64": "0.35.1",
|
||||
"@img/sharp-linuxmusl-arm64": "0.35.0",
|
||||
"@img/sharp-linuxmusl-x64": "0.35.0",
|
||||
"@rollup/rollup-linux-arm64-musl": "4.62.0",
|
||||
"@rollup/rollup-linux-x64-musl": "4.62.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user