We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fb9e85 commit a8e285aCopy full SHA for a8e285a
crates/cargo-test-macro/src/lib.rs
@@ -156,10 +156,10 @@ fn has_command(command: &str) -> bool {
156
let output = match Command::new(command).arg("--version").output() {
157
Ok(output) => output,
158
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") {
+ // 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" {
163
panic!(
164
"expected command `{}` to be somewhere in PATH: {}",
165
command, e
0 commit comments