Skip to content

Commit 065a272

Browse files
committed
Install typos-cli in check command if not on CI
1 parent 99a7d78 commit 065a272

File tree

1 file changed

+4
-1
lines changed
  • crates/tracel-xtask/src/commands

1 file changed

+4
-1
lines changed

crates/tracel-xtask/src/commands/check.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{
88
cargo::ensure_cargo_crate_is_installed,
99
process::{run_process, run_process_for_package, run_process_for_workspace},
1010
workspace::{get_workspace_members, WorkspaceMemberType},
11-
},
11+
}, versions::TYPOS_VERSION,
1212
};
1313

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

173173
fn run_typos() -> anyhow::Result<()> {
174+
if std::env::var("CI").is_err() {
175+
ensure_cargo_crate_is_installed("typos-cli", None, Some(TYPOS_VERSION), false)?;
176+
}
174177
group!("Typos");
175178
run_process(
176179
"typos",

0 commit comments

Comments
 (0)