Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Aug 4, 2022

Conversation

stekycz
Copy link
Contributor

@stekycz stekycz commented Aug 3, 2022

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
Copy link

welcome bot commented Aug 3, 2022

💖 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
Copy link

welcome bot commented Aug 4, 2022

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.

None yet

2 participants