Skip to content

Commit a8e285a

Browse files
committed
Always allow hg to be missing on CI.
1 parent 0fb9e85 commit a8e285a

File tree

1 file changed

+4
-4
lines changed
  • crates/cargo-test-macro/src

1 file changed

+4
-4
lines changed

crates/cargo-test-macro/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ fn has_command(command: &str) -> bool {
156156
let output = match Command::new(command).arg("--version").output() {
157157
Ok(output) => output,
158158
Err(e) => {
159-
// hg is not installed on GitHub macos.
160-
// Consider installing it if Cargo gains more hg support, but
161-
// otherwise it isn't critical.
162-
if is_ci() && !(cfg!(target_os = "macos") && command == "hg") {
159+
// hg is not installed on GitHub macOS or certain constrained
160+
// environments like Docker. Consider installing it if Cargo gains
161+
// more hg support, but otherwise it isn't critical.
162+
if is_ci() && command != "hg" {
163163
panic!(
164164
"expected command `{}` to be somewhere in PATH: {}",
165165
command, e

0 commit comments

Comments
 (0)