forked from 0xWheatyz/SPARC
Commit a frontend lockfile (package-lock.json or pnpm-lock.yaml) for reproducible builds #1206
Reference in New Issue
Block a user
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?
Context
The frontend directory has no lockfile committed to the repository. This means
npm installorpnpm installcan resolve different dependency versions on different machines or CI runs, producing non-reproducible builds.Roadmap reference: ROADMAP.md > P2 > Frontend > Missing package-lock.json or pnpm-lock.yaml
What to do
npm install(orpnpm install) locally to generate the lockfile.package-lock.jsonorpnpm-lock.yaml) to the repository..gitignoreto ensure the lockfile is tracked (remove any rule that ignores it).npm ci(orpnpm install --frozen-lockfile) so it enforces the lockfile.Acceptance criteria
main.npm ci(or equivalent) completes without errors in a clean environment.This issue has been resolved on main.
frontend/package-lock.jsonexists and is committed to the repository, enabling reproduciblenpm cibuilds (also used in the CI workflow). Closing as complete.