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(cli-utils): Fix regression causing turbo command to reuse the turbo cache itself #409

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

kitten
Copy link
Member

@kitten kitten commented Oct 4, 2024

Resolves #406

Summary

Due to a misuse of our own addSourceFile method's second argument, we regressed and the turbo command wasn't disabling the cached turbo file anymore.
This meant that any subsequent run of the turbo command would use the last run's type cache, which wasn't intentional.

To combat this the argument has been removed entirely, as we don't use it ourselves.

Set of changes

  • Remove addRootNames argument and instead always register a root name for addSourceFile calls

Copy link

changeset-bot bot commented Oct 4, 2024

🦋 Changeset detected

Latest commit: 62fc440

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kitten kitten merged commit 94b24c8 into main Oct 4, 2024
2 checks passed
@kitten kitten deleted the @kitten/fix/cache-override-regression branch October 4, 2024 15:21
@github-actions github-actions bot mentioned this pull request Oct 4, 2024
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.

gql.tada turbo does not regenerate cache file when a scalar changes
2 participants