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(core): fix cache recalculation #16468

Merged
merged 1 commit into from
Apr 21, 2023
Merged

Conversation

FrozenPandaz
Copy link
Collaborator

Current Behavior

When the nx cache is checked, the version that is being compared, is the version in the workspace's package.json. So even if install has not been run yet, it will report that it calculated the graph with the new version. Thus, when the new version is actually installed, it will not need to recalculate the graph.

Expected Behavior

When the nx cache is checked, the version being compared will be the installed version of nx. So if install hasn't been run yet, it will reuse the cache. But when the new version is installed, it will recalculate.

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Apr 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 21, 2023 7:13pm

@FrozenPandaz FrozenPandaz enabled auto-merge (squash) April 21, 2023 19:49
@FrozenPandaz FrozenPandaz merged commit a10b6b1 into nrwl:master Apr 21, 2023
@FrozenPandaz FrozenPandaz deleted the fix-cache branch April 21, 2023 21:47
FrozenPandaz added a commit that referenced this pull request Apr 24, 2023
FrozenPandaz added a commit that referenced this pull request Apr 24, 2023
FrozenPandaz added a commit that referenced this pull request Apr 25, 2023
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants