这是indexloc提供的服务,不要输入任何密码
Skip to content

fix(cache): no longer let remoteCache.enable override force #9684

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

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

chris-olszewski
Copy link
Member

Description

Fixes #9681

We were setting remote cache items to whatever the value of remoteCache.enable was. This incorrectly re-enabled parts of the cache that had previously been disabled. The fix is to only care if users explicitly disable remote caching, this works since if remoteCache.enable isn't specified it is assumed to be true.

Testing Instructions

Added failing unit test in first commit, it passes after the second commit.

@chris-olszewski chris-olszewski marked this pull request as ready for review January 10, 2025 19:28
@chris-olszewski chris-olszewski requested a review from a team as a code owner January 10, 2025 19:28
Copy link

vercel bot commented Jan 10, 2025

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

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:28pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:28pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:28pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:28pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:28pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:28pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:28pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:28pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 7:28pm

@chris-olszewski chris-olszewski merged commit 4d76d7b into main Jan 13, 2025
36 checks passed
@chris-olszewski chris-olszewski deleted the olszewski/fix_gh_9681 branch January 13, 2025 13:52
anthonyshew added a commit that referenced this pull request Jan 13, 2025
- **docs: mention free remote caching earlier on page (#9688)**
- **docs: typo fix (#9690)**
- **fix(cache): no longer let remoteCache.enable override force
(#9684)**
- **release(turborepo): 2.3.4-canary.7 (#9692)**
- **docs(fix): correct line highlighting**

### Description

<!--
  ✍️ Write a short summary of your work.
  If necessary, include relevant screenshots.
-->

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
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.

remoteCache enabled option set to true bypasses --force flag
2 participants