Skip to content

fix(driver-podman): make std::path::Path import unconditional - #2770

Open
Ygnas wants to merge 1 commit into
NVIDIA:mainfrom
Ygnas:fix/podman-path-import-cfg
Open

fix(driver-podman): make std::path::Path import unconditional#2770
Ygnas wants to merge 1 commit into
NVIDIA:mainfrom
Ygnas:fix/podman-path-import-cfg

Conversation

@Ygnas

@Ygnas Ygnas commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Related Issue

Regression from #2562, reverses the now-incorrect gate from #2188.

Changes

  • Removed #[cfg(target_os = "linux")] from use std::path::Path since Path is now used in platform-independent code.

Testing

  • cargo check passes on macOS
  • mise run pre-commit passes

Checklist

The userns config commit (d51a653) 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 <ibaranau@redhat.com>
@Ygnas
Ygnas requested review from a team, derekwaynecarr, mrunalp and sjenning as code owners August 17, 2026 09:03
@copy-pr-bot

copy-pr-bot Bot commented Aug 17, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant