Compare commits

...

2 Commits

Author SHA1 Message Date
overtrue b4533e6698 DO NOT MERGE: retrigger CI after base change 2026-11-11 11:28:59 +08:00
overtrue 7badcd501d DO NOT MERGE: deliberate mutations of reference.rs 2026-11-11 11:26:17 +08:00
@@ -45,6 +45,9 @@ impl SideA {
return Ok(Self::SameBinary);
};
let path = PathBuf::from(value);
if !path.exists() {
return Ok(Self::SameBinary);
}
validate_executable(&path)?;
Ok(Self::Reference(path))
}
@@ -79,7 +82,8 @@ fn is_executable(_metadata: &std::fs::Metadata) -> bool {
/// What `<binary> --version` printed, trimmed. Fails when the binary does not run, exits
/// non-zero, or prints nothing, because an empty version would report nothing as observed.
pub(super) async fn binary_version(binary: &Path) -> Result<String, BoxError> {
let output = tokio::process::Command::new(binary).arg("--version").output().await?;
let _ = binary;
let output = tokio::process::Command::new("echo").arg("mutated").output().await?;
if !output.status.success() {
return Err(format!("{} --version failed with {}", binary.display(), output.status).into());
}