Navigation Menu

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

Enforces sha512 in the cache #7591

Merged
merged 3 commits into from Oct 2, 2019
Merged

Enforces sha512 in the cache #7591

merged 3 commits into from Oct 2, 2019

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Oct 2, 2019

Summary

When installing a package through a "low integrity" registry, the sha512 isn't stored. This cause problems when using the same packages with a higher integrity later on, because we won't be able to check the sha512 hash and thus will throw an error.

As a workaround until the v2, we'll simply always compute the sha512 and store it in the cache. It's not the prettiest fix ever, but I don't want to lose days on this.

Test plan

Tested some cases manually. CI will have to do.

@arcanis arcanis merged commit e7cc86b into master Oct 2, 2019
arcanis added a commit that referenced this pull request Oct 8, 2019
* Always store sha512 in the cache

* Bumps the cache

* Fixes error reporting
VincentBailly pushed a commit to VincentBailly/yarn that referenced this pull request Jun 10, 2020
* Always store sha512 in the cache

* Bumps the cache

* Fixes error reporting
VincentBailly pushed a commit to VincentBailly/yarn that referenced this pull request Jun 10, 2020
* Always store sha512 in the cache

* Bumps the cache

* Fixes error reporting
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

1 participant