Skip to content

fix(lockfile): change sorting of keys in lockfile#5151

Merged
zkochan merged 2 commits into
pnpm:mainfrom
stekycz:stekycz-fix-lockfile-keys-sorting
Aug 4, 2022
Merged

fix(lockfile): change sorting of keys in lockfile#5151
zkochan merged 2 commits into
pnpm:mainfrom
stekycz:stekycz-fix-lockfile-keys-sorting

Conversation

@stekycz

@stekycz stekycz commented Aug 3, 2022

Copy link
Copy Markdown
Contributor

Make it more deterministic and prevent unnecessary churn in the lockfile. It is useful when looking for affected projects after changes to the lockfile. When the changes happen among various developers using various locale, the locale specific sorting causes changes in the lockfile for extraneous projects. Therefore, it could cause running unnecessary CI jobs, builds, releases and other work that would not be needed otherwise.

The localeCompare was used first time in this commit for this specific use case.

Make it more deterministic and prevent unnecessary churn in the lockfile.
It is useful when looking for affected projects after changes to the lockfile.
When the changes happen among various developers using various locale,
the locale specific sorting causes changes in the lockfile for extraneous projects.
Therefore, it could cause running unnecessary CI jobs, builds, releases and other
work that would not be needed otherwise.
@stekycz stekycz requested a review from zkochan as a code owner August 3, 2022 14:43
@welcome

welcome Bot commented Aug 3, 2022

Copy link
Copy Markdown

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@zkochan zkochan merged commit 1e5482d into pnpm:main Aug 4, 2022
@welcome

welcome Bot commented Aug 4, 2022

Copy link
Copy Markdown

Congrats on merging your first pull request! 🎉🎉🎉

@stekycz stekycz deleted the stekycz-fix-lockfile-keys-sorting branch August 4, 2022 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants