Skip to content

Commit

Permalink
Install typos-cli in check command if not on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Aug 26, 2024
1 parent 99a7d78 commit 065a272
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/tracel-xtask/src/commands/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{
cargo::ensure_cargo_crate_is_installed,
process::{run_process, run_process_for_package, run_process_for_workspace},
workspace::{get_workspace_members, WorkspaceMemberType},
},
}, versions::TYPOS_VERSION,
};

use super::Target;
Expand Down Expand Up @@ -171,6 +171,9 @@ fn run_lint(target: &Target, excluded: &[String], only: &[String]) -> anyhow::Re
}

fn run_typos() -> anyhow::Result<()> {
if std::env::var("CI").is_err() {
ensure_cargo_crate_is_installed("typos-cli", None, Some(TYPOS_VERSION), false)?;
}
group!("Typos");
run_process(
"typos",
Expand Down

0 comments on commit 065a272

Please sign in to comment.