File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/cargo-test-macro/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -156,10 +156,10 @@ fn has_command(command: &str) -> bool {
156
156
let output = match Command :: new ( command) . arg ( "--version" ) . output ( ) {
157
157
Ok ( output) => output,
158
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" ) {
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" {
163
163
panic ! (
164
164
"expected command `{}` to be somewhere in PATH: {}" ,
165
165
command, e
You can’t perform that action at this time.
0 commit comments