Skip to content

Commit

Permalink
Warn instead of print when no locally installed version. (#8384)
Browse files Browse the repository at this point in the history
### Description

Let's make sure we give an extra little bump in this situation. A warn,
instead of only a `println!`. Realistically, this isn't a situation that
folks want to be getting themselves into often/purposefully.
  • Loading branch information
anthonyshew committed Jun 8, 2024
1 parent 95f0db2 commit 4ade792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/turborepo-lib/src/shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use semver::Version;
use serde::Deserialize;
use thiserror::Error;
use tiny_gradient::{GradientStr, RGB};
use tracing::debug;
use tracing::{debug, warn};
use turbo_updater::display_update_check;
use turbopath::{AbsoluteSystemPath, AbsoluteSystemPathBuf};
use turborepo_repository::{
Expand Down Expand Up @@ -609,7 +609,7 @@ fn run_correct_turbo(
let should_warn_on_global = env::var(TURBO_GLOBAL_WARNING_DISABLED)
.map_or(true, |disable| !matches!(disable.as_str(), "1" | "true"));
if should_warn_on_global {
eprintln!("No locally installed `turbo` found. Using version: {version}.");
warn!("No locally installed `turbo` found. Using version: {version}.");
}
Ok(cli::run(Some(repo_state), subscriber, ui)?)
}
Expand Down

0 comments on commit 4ade792

Please sign in to comment.