Skip to content

Commit

Permalink
fix(ui): disable UI on all dry runs (#8269)
Browse files Browse the repository at this point in the history
### Description

The UI does not make sense for dry runs. I didn't notice this since I
would usually pipe the dry run output somewhere e.g. `turbo build
--dry=json > run.json`.

### Testing Instructions

Verify that `turbo build --dry` and `turbo build --dry=json` no longer
start up the UI
  • Loading branch information
chris-olszewski committed Jun 4, 2024
1 parent c4b1ace commit 1d00575
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/turborepo-lib/src/run/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ impl Run {
if self.should_print_prelude {
self.print_run_prelude();
}
if !self.experimental_ui {
// Don't start UI if doing a dry run
if !self.experimental_ui || self.opts.run_opts.dry_run.is_some() {
return None;
}

Expand Down

0 comments on commit 1d00575

Please sign in to comment.