Skip to content

Conversation

@dmichon-msft
Copy link
Contributor

Summary

Fixes an issue where the subpackage cache file was accidentally written empty.

Details

The previous fix wrote the file before the data had been populated, making the optimization produce correct results but be useless.

Updates the caching layer in PnpmShrinkwrapFile to be based on a content hash of the raw shrinkwrap text instead of file path, so that writing a new file will never have caching issues.

Added an explicit API to clear the shrinkwrap cache.

How it was tested

Built and copied into a repository using the feature. Validated resolver cache created correctly.

Impacted documentation

Only the API documentation for PnpmShrinkwrapFile, which doesn't seem to be part of the API.md.

@dmichon-msft dmichon-msft enabled auto-merge (squash) August 28, 2025 21:30
@dmichon-msft dmichon-msft merged commit 5c6153e into microsoft:main Aug 28, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants