From 3c7a6cc96000f3b61158062fb01a7b5aac22bcfd Mon Sep 17 00:00:00 2001 From: Kris Hicks Date: Wed, 8 Jul 2026 15:52:38 -0700 Subject: [PATCH] fix(driver-podman): gate Linux-only Path import Apply the Linux cfg to the Path import so native macOS lint runs do not report it as unused when the only call site is compiled out. Signed-off-by: Kris Hicks --- crates/openshell-driver-podman/src/container.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/openshell-driver-podman/src/container.rs b/crates/openshell-driver-podman/src/container.rs index 7514fbc51..ad44fca43 100644 --- a/crates/openshell-driver-podman/src/container.rs +++ b/crates/openshell-driver-podman/src/container.rs @@ -14,6 +14,7 @@ use openshell_core::{driver_mounts, proto_struct}; use serde::Serialize; use serde_json::Value; use std::collections::{BTreeMap, HashSet}; +#[cfg(target_os = "linux")] use std::path::Path; /// Returns `true` when `SELinux` is enabled (enforcing or permissive).