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] projectGraphBuilder: Add module cache invalidation #612

Merged
merged 5 commits into from
May 22, 2023

Conversation

RandomByte
Copy link
Member

@RandomByte RandomByte commented May 17, 2023

If a visited module did not resolve to any specification (project or
extensions), try recreating the module when visiting it again from a
different parent.

Resolves SAP/ui5-tooling#807

This is an alternative to #611

This change might have a greater impact on performance since projectGraphBuilder now might recreate modules that are not relevant to UI5 Tooling more than once if they are listed multiple times in the dependency tree.
Before this change, such modules where only visited once.

If a visited module did not resolve to any specification (project or
extensions), try recreating the module when visiting it again from a
different parent.

Resolves SAP/ui5-tooling#807

This is an alternative to #611

This change might have a greater impact on performance since er might
recreate modules that are not relevant to UI5 Tooling more than once if
they are listed multiple times in the dependency tree.
Before this change, such modules where only visited once.
@coveralls
Copy link

coveralls commented May 17, 2023

Coverage Status

Coverage: 95.762% (+0.01%) from 95.751% when pulling 8405f7c on fix-invalidate-cached-modules into 9278d76 on main.

@d3xter666 d3xter666 requested review from matz3 and a team May 19, 2023 08:01
matz3
matz3 previously approved these changes May 19, 2023
lib/graph/projectGraphBuilder.js Outdated Show resolved Hide resolved
@RandomByte RandomByte merged commit 65496ea into main May 22, 2023
@RandomByte RandomByte deleted the fix-invalidate-cached-modules branch May 22, 2023 14:22
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.

Shims no longer bundled after migration to v3
4 participants