Repository navigation
fix(repo): regenerate package-lock.json without start-core's phantom cbor-web - #4697
Conversation
…cbor-web #4674 committed a lockfile whose shared-libs/ts-modules/start-core/dist entry lists cbor-web, which start-core's package.json does not declare. Builds regenerate start-core's dist/package.json and then run the root package-lock.json recipe (`npm --prefix . i`), which drops the line. The tree is then dirty when check-git-hash.sh stamps the build, so every start-wrt CI build since #4674 identifies itself as `<hash>-modified`, including the 1.4.0 re-cut from 35a38d8. Regenerated with `make package-lock.json` (Node 24.17.0, npm 11.13.0, the versions CI uses). The result is byte-identical to the lockfile before #4674.
helix-white
left a comment
There was a problem hiding this comment.
Approved at 887ec11. The single-line removal aligns the root lockfile's local start-core dependency metadata with its source manifest, which the existing build copies into dist/package.json. This prevents npm from dirtying the tracked lockfile and falsely marking a clean build's identity as modified. The root still declares and locks cbor-web; installed package versions remain unchanged. No build or hash-stamping logic changes. The branch merges cleanly with current master.
Implementation diff: +0 / −0 lines in 0 files (excludes lockfiles, tests, docs, release notes, and changelog).
Verification: The author records clean-checkout frontend builds on master df138b5 and this head, rebuilding start-core first: master changes the lockfile and stamps -modified, while this head leaves tracked files unchanged and stamps the clean hash. The author also records a passing lockfile formatting check. I inspected the diff, manifests, generation recipes and stamping callers without running builds or tests. Current CI Prettier and Conflict Markers pass; binary/deb builds, automated tests, formatting/lockfiles, generated artifacts, dependency licenses and changelog checks remain pending. The full OpenWrt image and deploy jobs are skipped, so there is no end-to-end firmware build evidence on this PR.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
|
Final approval noted. No changes requested; my approval remains unchanged. The PR is mergeable, with binary/deb builds, automated tests and generated-artifact checks still running. |
#4674 committed a
package-lock.jsonwhoseshared-libs/ts-modules/start-core/distentry listscbor-web, which start-core'spackage.jsondoes not declare. Builds rebuild start-core'sdist/package.jsonand then run the rootpackage-lock.jsonrecipe (npm --prefix . i), and npm drops that line. The tree is dirty by the timecheck-git-hash.shstamps the build, so every start-wrt CI build since #4674 identifies itself as<hash>-modified. That includes the 1.4.0 re-cut from 35a38d8, which boots asBooted v1.4.0 (35a38d80f-modified). The installed package set is unchanged:cbor-webstays installed through the rootpackage.json. Only the build's identity is wrong.This regenerates the lockfile with
make package-lock.json(Node 24.17.0, npm 11.13.0, the versions CI uses). The result is the single-line removal and is byte-identical to the lockfile before #4674 (blobc97a54863).Verification
On 887ec11, against master df138b5 as the control. Each run used a clean checkout of the commit, deleted start-core's
dist/so it rebuilt as in CI, ran CI's build up to the Rust stage (make projects/start-wrt/web/dist/startwrt/browser/immutable-assets.txt), then rancheck-git-hash.shwithGIT_BRANCH_AS_HASH=0:npm --prefix . iranpackage-lock.jsondf138b5ec…-modified887ec1118…The stamp is taken before the Rust and OpenWrt stages, so those stages cannot add or remove the suffix.
npx prettier --check package-lock.jsonpasses.