-
Notifications
You must be signed in to change notification settings - Fork 2k
chore(cache): add deprecation warnings to old cache flags #9428
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Skipped Deployments
|
warn!( | ||
"TURBO_REMOTE_ONLY is deprecated and will be removed in a future major version. \ | ||
Use TURBO_CACHE=remote:rw" | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anthonyshew high priority we have to set this on vercel before we ship this. I can spin this up quick
@@ -80,7 +81,19 @@ impl ResolvedConfigurationOptions for EnvVars { | |||
|
|||
let force = self.truthy_value("force").flatten(); | |||
let remote_only = self.truthy_value("remote_only").flatten(); | |||
if remote_only.is_some() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we check for TURBO_REMOTE_ONLY
and NOT TURBO_CACHE
? Because we have to double set this on Vercel to get this to work without a deprecation warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We throw if you use legacy cache options with TURBO_CACHE
:
[0 olszewski@chriss-mbp] /Users/olszewski/code/vercel/turborepo $ TURBO_REMOTE_CACHE_READ_ONLY=1 turbo_dev @turbo/types#lint --cache=remote:rw > /dev/null
WARNING No locally installed `turbo` found. Using version: 2.2.4-canary.9.
turbo 2.2.4-canary.9
WARNING TURBO_REMOTE_CACHE_READ_ONLY is deprecated and will be removed in a future major version. Use TURBO_CACHE=remote:r
x Cannot set `cache` config and other cache options (`force`, `remoteOnly`,
| `remoteCacheReadOnly`) at the same time
Description
With introduction of
--cache
andTURBO_CACHE
add deprecation flags to the "old" cache config options.We also now will only throw on the mixing of cache env vars and
TURBO_CACHE
if they do not agree. An exception isTURBO_FORCE
which will override.Testing Instructions