9f3e5eead5
This patch: - Deprecates pkg/system.DefaultPathEnv - Moves the implementation inside oci - Adds TODOs to align the default in the Builder with the one used elsewhere Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
18 lines
581 B
Go
18 lines
581 B
Go
package system
|
|
|
|
const defaultUnixPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
|
|
// DefaultPathEnv is unix style list of directories to search for
|
|
// executables. Each directory is separated from the next by a colon
|
|
// ':' character .
|
|
// For Windows containers, an empty string is returned as the default
|
|
// path will be set by the container, and Docker has no context of what the
|
|
// default path should be.
|
|
//
|
|
// Deprecated: use oci.DefaultPathEnv
|
|
func DefaultPathEnv(os string) string {
|
|
if os == "windows" {
|
|
return ""
|
|
}
|
|
return defaultUnixPathEnv
|
|
}
|