diff --git a/src/path_resolver.rs b/src/path_resolver.rs index a853387..6d0e1b2 100644 --- a/src/path_resolver.rs +++ b/src/path_resolver.rs @@ -1,7 +1,10 @@ use std::path::{Path, PathBuf}; +#[cfg(target_os = "macos")] use std::process::Command; -use anyhow::{Context, Result}; +#[cfg(target_os = "macos")] +use anyhow::Context; +use anyhow::Result; use crate::util; @@ -62,4 +65,4 @@ end run } Ok(Some(util::resolve_path(resolved)?)) -} \ No newline at end of file +}