mirror of
https://github.com/containers/podman.git
synced 2026-06-01 20:37:26 -04:00
The podman module paths are moving from github.com/containers/podman to go.podman.io/podman. This will help with future mobility. Signed-off-by: Brent Baude <bbaude@redhat.com>
14 lines
230 B
Go
14 lines
230 B
Go
package env
|
|
|
|
import (
|
|
"go.podman.io/podman/v6/pkg/rootless"
|
|
"go.podman.io/podman/v6/pkg/util"
|
|
)
|
|
|
|
func getRuntimeDir() (string, error) {
|
|
if !rootless.IsRootless() {
|
|
return "/run", nil
|
|
}
|
|
return util.GetRootlessRuntimeDir()
|
|
}
|