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

Fix rewritten package cache encapsulation #1560

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Jul 25, 2023

Fixes #1514

A v2 addon with a v1 addon dependency was not resolving its dependencies correctly, in two places.

  • in virtual-content.ts where we emit implicit-modules
  • in compat-app-builder.ts when doing partitionEngines

The fix to both is adjusting the meaning of RewrittenPackageCache so that it always provides packages that see moved dependencies, even when a given package itself has not moved (because it's a v2 addon).

Along with that I took the opportunity to make packageCache.original() more like maybeMoved() in that returns its argument if no change was needed, which simplified things for the majority of callers.

Fixes #1514

A v2 addon with a v1 addon dependency was not resolving its dependencies correctly, in two places.
 - in virtual-content.ts where we emit implicit-modules
 - in compat-app-builder.ts when doing partitionEngines

The fix to both is adjusting the meaning of RewrittenPackageCache so
that it always automatically provides packages that see moved
dependencies, even when a given package *itself* has not moved (because
it's a v2 addon).
@ef4 ef4 added the bug Something isn't working label Jul 25, 2023
@ef4 ef4 marked this pull request as ready for review July 26, 2023 01:28
Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@mansona mansona merged commit b6dee02 into main Jul 26, 2023
196 checks passed
@mansona mansona deleted the fix-rewritten-package-cache-encapsulation branch July 26, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attempted to resolve did-insert, which was expected to be a modifier, but nothing was found
3 participants