From 25ec842a7f0bedfc7b8de1c76e341e96db2e66cb Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sat, 14 Mar 2026 15:31:27 -0400 Subject: [PATCH] Fix detect_binary test to work on Ubuntu (dash) sandboxes `sh --version` exits non-zero on dash (Ubuntu default), so the test only passed on macOS where sh is bash. Use `git` instead which reliably supports --version on all platforms. Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/crates/fabro-cli/src/install.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crates/fabro-cli/src/install.rs b/lib/crates/fabro-cli/src/install.rs index fb83fdef2..4478a4424 100644 --- a/lib/crates/fabro-cli/src/install.rs +++ b/lib/crates/fabro-cli/src/install.rs @@ -993,7 +993,7 @@ mod tests { #[test] fn detect_binary_finds_existing_command() { - assert!(detect_binary_on_path("sh")); + assert!(detect_binary_on_path("git")); } #[test]