turbo
574ffa3d - fix(cache): avoid warning if TURBO_FORCE, TURBO_REMOTE_ONLY, and TURBO_CACHE (#9704)

Commit
1 year ago
fix(cache): avoid warning if TURBO_FORCE, TURBO_REMOTE_ONLY, and TURBO_CACHE (#9704) ### Description Previously we would erroneously warn users that `TURBO_REMOTE_ONLY` was being deprecated even if the correct `TURBO_CACHE` was also present. This happened because we have `TURBO_FORCE` erase caching behavior and this was happening before we checked if `TURBO_REMOTE_ONLY` had a matching `TURBO_CACHE` declaration. The fix is just doing that check before doing the force override. ### Testing Instructions Before ``` [0 olszewski@chriss-mbp] /Users/olszewski/code/vercel/turborepo $ TURBO_FORCE=1 TURBO_REMOTE_ONLY=1 TURBO_CACHE=remote:rw turbo_dev @turbo/t ypes#build > /dev/null WARNING No locally installed `turbo` found. Using version: 2.3.4-canary.6. turbo 2.3.4-canary.6 WARNING TURBO_REMOTE_ONLY is deprecated and will be removed in a future major version. Use TURBO_CACHE=remote:rw ``` After: ``` [0 olszewski@chriss-mbp] /Users/olszewski/code/vercel/turborepo $ TURBO_FORCE=1 TURBO_REMOTE_ONLY=1 TURBO_CACHE=remote:rw turbo_dev @turbo/types#build > /dev/null WARNING No locally installed `turbo` found. Using version: 2.3.4-canary.7. turbo 2.3.4-canary.7 ```
Parents
Loading