package system

import "github.com/moby/buildkit/util/system"

Index

Constants

const DefaultPathEnvUnix = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

DefaultPathEnvUnix is unix style list of directories to search for executables. Each directory is separated from the next by a colon ':' character .

const DefaultPathEnvWindows = "c:\\Windows\\System32;c:\\Windows"

DefaultPathEnvWindows is windows style list of directories to search for executables. Each directory is separated from the next by a colon ';' character .

Functions

func CheckSystemDriveAndRemoveDriveLetter

func CheckSystemDriveAndRemoveDriveLetter(path string) (string, error)

CheckSystemDriveAndRemoveDriveLetter verifies that a path, if it includes a drive letter, is the system drive. This is a no-op on Linux.

func DefaultPathEnv

func DefaultPathEnv(os string) string

Source Files

path.go path_unix.go

Version
v0.10.4
Published
Aug 22, 2022
Platform
js/wasm
Last checked
1 minute ago

Tools for package owners.