mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7178] [Issue]: start-termux.sh's supportedArchitectures lines in .npmrc are ignored by pnpm 10 #4008
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4008
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7178
Originally assigned to: @SpicyMarinara on GitHub.
Summary
On Android,
start-termux.shappendssupportedArchitectures.os[]=…/supportedArchitectures.cpu[]=…lines (includingwasm32) to.npmrcso pnpm installs Linux and WebAssembly optional binaries. pnpm 10.34.5 (our pinned version) ignores these keys in.npmrc. It readssupportedArchitecturesonly frompnpm-workspace.yaml, thepnpmfield ofpackage.json, or the--os/--cpu/--libcCLI flags. So on Termux the effective target staysandroid/arm64, and the "platform fix" block instart-termux.shdoes nothing.Expected behavior
The architectures the launcher asks for are the ones pnpm installs, or the block is removed if it is not needed.
Actual behavior
Found while investigating #7173. On desktop, an install with those
.npmrclines still installed@img/sharp-darwin-arm64and skipped@img/sharp-linux-arm64. Passing--os linux --cpu arm64 --cpu wasm32on the command line did change what was installed.Steps to reproduce
start-termux.sh(theNPMRC_MARKERblock plussupportedArchitectures.cpu[]=wasm32) to.npmrc.pnpm install --frozen-lockfile.node_modules/.modules.yamlskippedand which@img/sharp-*packages were installed.Environment
stagingAdditional context
install_workspace_dependencies, or topnpm-workspace.yamlscoped to Android. If it doesn't, delete the block and itsTERMUX_FORCE_INSTALLtrigger.@SpicyMarinara commented on GitHub (Oct 7, 2026):
Fixed on
stagingby #7198. Ships tomainwith the next promotion.