From 46e19b44f5024b6c1a199c1dad8c1783fc04057c Mon Sep 17 00:00:00 2001 From: Ignas Baranauskas Date: Mon, 17 Aug 2026 09:59:55 +0100 Subject: [PATCH] fix(driver-podman): make std::path::Path import unconditional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The userns config commit (d51a653f) added `supervisor_bin_path: Option<&Path>` to `build_container_spec_for_image` without a cfg gate, but the `use std::path::Path` import was gated behind `#[cfg(target_os = "linux")]`. This broke compilation on macOS. The import was originally Linux-only because its sole consumer, `selinux_enabled()`, is cfg-gated — but the new function is platform-independent, so the import must be too. Signed-off-by: Ignas Baranauskas --- crates/openshell-driver-podman/src/container.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/openshell-driver-podman/src/container.rs b/crates/openshell-driver-podman/src/container.rs index d01179095..cae477618 100644 --- a/crates/openshell-driver-podman/src/container.rs +++ b/crates/openshell-driver-podman/src/container.rs @@ -14,7 +14,6 @@ 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).