You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider unifying cache verification for modern Yarn #3137
Vite+ no longer depends on Corepack, but it still supports integrity pins that Corepack writes to the packageManager field.
For Yarn 2 and later, these pins cover bin/yarn.js, not the npm tarball. Changing the hash target would break existing valid pins, as previously reported in #2209 and fixed in #2227.
Could we use a common cache verification policy for all package managers? When the verification record is missing or differs from the requested pin, Vite+ would download, verify, and replace the installation instead of rehashing the cached Yarn CLI.
Modern Yarn would still verify the extracted bin/yarn.js to preserve existing pin compatibility. This would require network access in cases where local verification currently works.
One option would be to verify modern Yarn against the npm tarball hash rather than the extracted CLI hash for both fresh installs and cache reuse, making it consistent with other package managers. This would be a breaking change for existing Corepack-generated Yarn pins. What do you think?
Activity
jong-kyung commentedon Oct 20, 2026
@liangmiQwQ @fengmk2 WDYT?
fengmk2 commentedon Oct 20, 2026
Can you provide a better solution? 😄
jong-kyung commentedon Oct 20, 2026
One option would be to verify modern Yarn against the npm tarball hash rather than the extracted CLI hash for both fresh installs and cache reuse, making it consistent with other package managers. This would be a breaking change for existing Corepack-generated Yarn pins. What do you think?