forked from 0xWheatyz/SPARC
Commit frontend package lockfile to ensure reproducible builds #1388
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?
Background
Roadmap item: P2 Frontend — Missing package-lock.json or pnpm-lock.yaml
The frontend has no lockfile committed. This means
npm install(or equivalent) resolves to whatever the latest compatible versions are at build time, leading to non-reproducible builds and potential breakage when transitive dependencies release breaking changes.Task
npm install,yarn install, orpnpm install).package-lock.json,yarn.lock, orpnpm-lock.yaml) to the repository.Dockerfile(frontend) and the CI workflow to use the locked install command (npm ci,yarn install --frozen-lockfile, orpnpm install --frozen-lockfile) instead of a plain install.Acceptance Criteria
node_modulesor generated files are accidentally committed.Reference
See ROADMAP.md § P2 Frontend.
Resolved by PR #31 (merged).
frontend/package-lock.jsonis committed to the repository for reproducible builds.