Skip to content

Commit

Permalink
Always allow hg to be missing on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Aug 2, 2022
1 parent 0fb9e85 commit a8e285a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/cargo-test-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ fn has_command(command: &str) -> bool {
let output = match Command::new(command).arg("--version").output() {
Ok(output) => output,
Err(e) => {
// hg is not installed on GitHub macos.
// Consider installing it if Cargo gains more hg support, but
// otherwise it isn't critical.
if is_ci() && !(cfg!(target_os = "macos") && command == "hg") {
// hg is not installed on GitHub macOS or certain constrained
// environments like Docker. Consider installing it if Cargo gains
// more hg support, but otherwise it isn't critical.
if is_ci() && command != "hg" {
panic!(
"expected command `{}` to be somewhere in PATH: {}",
command, e
Expand Down

0 comments on commit a8e285a

Please sign in to comment.