fix: Add lockfile freshness validation to plugin-ci workflow#147
Open
privilegedescalation-engineer[bot] wants to merge 1 commit intomainfrom
Open
fix: Add lockfile freshness validation to plugin-ci workflow#147privilegedescalation-engineer[bot] wants to merge 1 commit intomainfrom
privilegedescalation-engineer[bot] wants to merge 1 commit intomainfrom
Conversation
Prevents ERR_PNPM_LOCKFILE_CONFIG_MISMATCH by validating lockfile freshness before install when pnpm-lock.yaml contains an overrides section. Provides clear error message directing users to run 'pnpm install' to regenerate the lockfile. Fixes PRI-764
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a pre-install validation step to detect stale pnpm lockfiles when
overridesare present in package.json. Prevents the confusingERR_PNPM_LOCKFILE_CONFIG_MISMATCHerror by failing early with a clear message directing developers to runpnpm install.Changes
Validate pnpm lockfile freshness (detect stale overrides)step to.github/workflows/plugin-ci.yamloverridessectionpnpm installto regenerateTesting
Related