Skip to content

Commit a6b3425

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

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use crate::{
99
process::{run_process, run_process_for_package, run_process_for_workspace},
1010
workspace::{get_workspace_members, WorkspaceMemberType},
1111
},
12+
versions::TYPOS_VERSION,
1213
};
1314

1415
use super::Target;
@@ -171,6 +172,9 @@ fn run_lint(target: &Target, excluded: &[String], only: &[String]) -> anyhow::Re
171172
}
172173

173174
fn run_typos() -> anyhow::Result<()> {
175+
if std::env::var("CI").is_err() {
176+
ensure_cargo_crate_is_installed("typos-cli", None, Some(TYPOS_VERSION), false)?;
177+
}
174178
group!("Typos");
175179
run_process(
176180
"typos",

0 commit comments

Comments
 (0)