-
Notifications
You must be signed in to change notification settings - Fork 3
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
Yarn v2 – post-resolution validation errors #910
Comments
YN0028 (--frozen-lockfile exception) It looks like a slew of package versions are being modified/changed on install. I don't know how to reproduce this on my machine–using
|
Just attempted to blow away |
Im getting this error on jenkins pipeline as well. |
I'm getting this error on bitbucket pipelines as well, using yarn 3.2.0. I have a yarn config in a pipeline step so I can see all the active settings and checksumBehavior is set to 'update', plus the yarn.lock shows as having 'rw' access for root. So I'm struggling to think of anything else to try |
I got this error when using yarn PnP workspaces, with a local .yarnrc.yml in one of my workspaces. Depending on where I ran the I solved this by moving the |
Yarn install seems to succeed, but sits silently after that for about 3.5 minutes. Then it fails with the following:
The lockfile would have been modified by this install, which is explicitly forbidden.
I'm now on a brand new application (I was hoping the issue was that my original app was just too stale) and I can't for the life of me figure out why this validation step is failing. From what I can tell, heroku is just running
yarn install
which should produce the same results I have here on my machine.I've tried clearing the build cache, disabling caching, and killing repo history. I've confirmed that my lockfile is up-to-date, and none of the support articles I've found seem to address the specific error I'm encountering; any relevant ones I have found are focused on the lockfile being out of date, which is a simple fix.
Buildpacks
heroku/nodejs@latest
blockhq/heroku-buildpack-yarn-workspaces@latest
<- new addition I tried out. Result is same.Engines
Node v12.20.0
Yarn v2.4.1
Build Log
Let me know if you need more information, and thank you in advance!
Edit
I forgot about--immutable
– is there any way to instruct heroku to pass it?Added validation results after noticing the inline diff for versions.
The text was updated successfully, but these errors were encountered: