Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(affected): prevent affected from being used with filter (#9049)
### Description We already would throw for `turbo ls`, but for some reason `clap` would accept `--filter` and `--affected` on `run`. ``` [0 olszewski@Chriss-MacBook-Pro] /Users/olszewski/code/vercel/turborepo $ turbo_dev ls --affected --filter='cli' WARNING No locally installed `turbo` found. Using version: 2.0.15-canary.0. ERROR the argument '--affected' cannot be used with '--filter <FILTER>' Usage: turbo ls --affected [PACKAGES]... For more information, try '--help'. [1 olszewski@Chriss-MacBook-Pro] /Users/olszewski/code/vercel/turborepo $ turbo_dev run build --affected --filter='!cli' WARNING No locally installed `turbo` found. Using version: 2.0.15-canary.0. turbo 2.0.15-canary.0 • Packages in scope: • Running build in 0 packages • Remote caching enabled No tasks were executed as part of this run. Tasks: 0 successful, 0 total Cached: 0 cached, 0 total Time: 197ms Run: https://vercel.com/teams/vercel/repos/turbo-monorepo/runs/space_run_sAdkTu3ztxIjkUs0YpeIG82A ``` ### Testing Instructions Added unit tests to make sure this results in an error if both are used.
- Loading branch information