feat(installer): prefer npm next lane #688
Reference in New Issue
Block a user
Delete Branch "feat/installer-next-fast-npm"
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?
Summary
Refs #462
Verification
REVIEW-OF-RECORD — APPROVE (#688, head
2fd7cfc356). I reviewed the installer --next fast-npm lane and found no blockers.Fast @next behavior: --next with no explicit ref resolves both Gitea npm dist-tags from
https://git.mosaicstack.dev/api/packages/mosaicstack/npm/, requires matching numericnext.<pipeline>suffixes, and installs exact resolved versions rather than mutable@next. Live registry verification resolves@mosaicstack/mosaic@next=0.0.49-next.1633and@mosaicstack/gateway@next=0.0.7-next.1633; a real temp-prefix install installed exactly those two versions.Fallback/precedence: registry unavailability, mismatched suffixes, or install failure returns nonzero from the fast path and falls back to the existing source build at
next; --next does not hard-fail solely on registry/dist-tag/install issues. Explicit--refandMOSAIC_REFforce the source lane and skip @next lookup, while pure--devremains source-build behavior. The installer harness covers exact-version fast install, gateway install failure source fallback, explicit-ref precedence, and mismatched suffix warning.Docs: user guide, framework defaults README, and design note now describe the three lanes accurately: stable npm @latest, prerelease fast npm @next with source fallback, and contributor/source build via --dev/--ref.
Reviewer verification on head
2fd7cfc3:bash -n tools/install.shpass;bash -n tools/install-next-lane.test.shpass;pnpm run test:installerpass; live registry check pass; real temp-prefixtools/install.sh --cli --next --yes --no-auto-launchpass with exact CLI/gateway versions;pnpm format:checkpass;pnpm typecheckpass (41/41);pnpm lintpass (23/23);pnpm buildpass (23/23). PR CI reported green on pipeline 1635. APPROVE.