-
Notifications
You must be signed in to change notification settings - Fork 2k
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/cleanup yarn lock #41847
Fix/cleanup yarn lock #41847
Conversation
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
I'm still confused (only skimmed linked issues); is there no way to prevent updates in |
As far as I know, there is no way to do that using yarn flags. There are a few examples on how to do it "externally" (check that I did something similar in the CI config, now at least at test will fail if |
4d53313
to
9d55001
Compare
Should we be removing
Do we have any theories on how we get into a state where the lockfile is out of date but not committed? I have a hard time imagining |
IMO, the behaviour of My theories of why
|
Extracted the commit to fix |
1b936b2
to
6fb03ad
Compare
In this branch? I can't reproduce it in commit |
Sorry, I didn't specify. At #41966 Actually! I might've ran |
I get the same diff in Looks like that branch is not updated with if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. Let's just drop the --frozen-lockfile
change from this PR so we can get the CI check in place.
Changes proposed in this Pull Request
yarn.lock
does not have uncommitted changes.yarn.lock
--frozen-lockfile
since it doesn't do what we expect (The --frozen-lockfile command-line option does not work yarnpkg/yarn#3313 Clearer documentation around yarn install / --frozen-lockfile / --pure-lockfile yarnpkg/yarn#5847) to avoid any future confusionFrom https://app.circleci.com/pipelines/github/Automattic/wp-calypso/58032/workflows/819cbf5a-ec40-4989-a89a-c57186712b9d/jobs/715945/steps

Testing instructions
yarn.lock
and runyarn
. Run this script in the console and verify it shows the error:yarn.lock
and run the script again, you shouldn't see any error.