turborepo
3a34e34c - chore(cache): add deprecation warnings to old cache flags (#9428)

Commit
1 year ago
chore(cache): add deprecation warnings to old cache flags (#9428) ### Description With introduction of `--cache` and `TURBO_CACHE` add deprecation flags to the "old" cache config options. ### Testing Instructions ``` [0 olszewski@chriss-mbp] /Users/olszewski/code/vercel/turborepo $ TURBO_REMOTE_ONLY=1 turbo_dev @turbo/types#lint > /dev/null WARNING No locally installed `turbo` found. Using version: 2.2.4-canary.9. turbo 2.2.4-canary.9 WARNING TURBO_REMOTE_ONLY is deprecated and will be removed in a future major version. Use TURBO_CACHE=remote:rw [0 olszewski@chriss-mbp] /Users/olszewski/code/vercel/turborepo $ TURBO_REMOTE_CACHE_READ_ONLY=1 turbo_dev @turbo/types#lint > /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 [0 olszewski@chriss-mbp] /Users/olszewski/code/vercel/turborepo $ turbo_dev @turbo/types#lint --no-cache > /dev/null WARNING No locally installed `turbo` found. Using version: 2.2.4-canary.9. WARNING --no-cache is deprecated and will be removed in a future major version. Use --cache=local:r,remote:r turbo 2.2.4-canary.9 [0 olszewski@chriss-mbp] /Users/olszewski/code/vercel/turborepo $ turbo_dev @turbo/types#lint --remote-only > /dev/null WARNING No locally installed `turbo` found. Using version: 2.2.4-canary.9. WARNING --remote-only is deprecated and will be removed in a future major version. Use --cache=remote:rw turbo 2.2.4-canary.9 [0 olszewski@chriss-mbp] /Users/olszewski/code/vercel/turborepo $ turbo_dev @turbo/types#lint --remote-cache-read-only > /dev/null WARNING No locally installed `turbo` found. Using version: 2.2.4-canary.9. WARNING --remote-cache-read-only is deprecated and will be removed in a future major version. Use --cache=remote:r turbo 2.2.4-canary.9 ```
Parents
Loading