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

lodash.defaults invalid checksum #3137

Closed
shellscape opened this issue Feb 13, 2021 · 8 comments · Fixed by #3228
Closed

lodash.defaults invalid checksum #3137

shellscape opened this issue Feb 13, 2021 · 8 comments · Fixed by #3228
Milestone

Comments

@shellscape
Copy link
Contributor

shellscape commented Feb 13, 2021

pnpm version: 5.17.1

Code to reproduce the issue:

This happens in CI, so I'm not able to provide debug output. We have lodash.kebabcase installed as a devDep. Upon running pnpm install we receive ERROR  Got unexpected checksum for "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz". Wanted "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=". Got "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ== sha1-0JF4cW/+pN3p5ft7N/bwgCJ0WAw=".

Expected behavior:

Successful install.

Actual behavior:

See above

Additional information:

Worth noting that npm install doesn't seem to share the same behavior.

  • node -v prints: 14.15.3
  • Windows, macOS, or Linux?: Linux
@zkochan
Copy link
Member

zkochan commented Feb 14, 2021

What happens locally? Maybe there was some merge conflict and the checksum of a different package got resolved to lodash.defaults. Try to remove the lockfile and node_modules and run pnpm install

@shellscape
Copy link
Contributor Author

I attempted to remove the lockfile and ran pnpm install again to regenerate it several times. Removed the dependency and added it back again. The only thing that worked for me was editing the lock file manually to update the sha type and signature. We haven't seen that issue since, but it was a weird one. I suppose we can close this one now, but I couldn't consider it resolved. Perhaps a temporary glitch.

@zkochan
Copy link
Member

zkochan commented Feb 20, 2021

We probably can add some more sophisticated error logging for this.

@zkochan
Copy link
Member

zkochan commented Feb 23, 2021

It seems like a merge conflict issue.

That wanted checksum is for the lodash.flattendeep@4.4.0 package.

@zkochan
Copy link
Member

zkochan commented Feb 23, 2021

related #3188

@zkochan
Copy link
Member

zkochan commented Mar 4, 2021

closing in favor of #3188

@zkochan
Copy link
Member

zkochan commented Mar 9, 2021

🚢 5.18.5

@shellscape
Copy link
Contributor Author

@zkochan thank you!

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 a pull request may close this issue.

2 participants