Skip to content

Conversation

@dmichon-msft
Copy link
Contributor

@dmichon-msft dmichon-msft commented Aug 26, 2025

Summary

Fixes an issue where packages with bundledDependencies were persisted in the subpackage cache with incorrect data.
Bug introduced in #5321 .

Details

The returned arrays are mutated during computeResolverCacheFromLockfileAsync to extract out bundledDependencies.

Adds a version field to the subpackage cache file to support ignoring the file if it is incompatible with current spec.

How it was tested

Ran twice on a repo with bundledDependencies in packages and verified that the bundled dependencies resolve post-cache replay.

Impacted documentation

None.

@dmichon-msft dmichon-msft enabled auto-merge (squash) August 26, 2025 20:42
@dmichon-msft dmichon-msft merged commit 69e95cf into microsoft:main Aug 26, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Aug 26, 2025
@dmichon-msft dmichon-msft deleted the resolver-cache-cache branch August 26, 2025 20:51
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