Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix(tests): gate #718 sparse-restore test helpers to Linux
AkitaOnRailsb7238bd33a80
diff --git a/crates/ai-memory-cli/src/commands/restore.rs b/crates/ai-memory-cli/src/commands/restore.rsindex 0aecf1f2..dae54039 100644--- a/crates/ai-memory-cli/src/commands/restore.rs+++ b/crates/ai-memory-cli/src/commands/restore.rs@@ -239,6 +239,7 @@ mod tests {);}+ #[cfg(target_os = "linux")]fn sha256_hex(bytes: &[u8]) -> String {use sha2::{Digest, Sha256};let mut hasher = Sha256::new();@@ -249,6 +250,7 @@ mod tests {/// Whether the `tar` on PATH is GNU tar with sparse support, so the/// real-fixture test below can be skipped everywhere else (musl/BSD/// `tar`, or no `tar` at all) without breaking those environments.+ #[cfg(target_os = "linux")]fn gnu_tar_with_sparse_available() -> bool {std::process::Command::new("tar").arg("--version")