MCPcopy Create free account
hub / github.com/ddev/ddev / IsLinux

Function IsLinux

pkg/nodeps/utils.go:85–87  ·  view source on GitHub ↗

IsLinux returns true if running on Linux or inside WSL2

()

Source from the content-addressed store, hash-verified

83
84// IsLinux returns true if running on Linux or inside WSL2
85func IsLinux() bool {
86 return runtime.GOOS == "linux"
87}
88
89// IsCodespaces returns true if running on GitHub Codespaces
90func IsCodespaces() bool {

Callers 15

GetGlobalDdevDirLocationFunction · 0.92
TestMutagenSimpleFunction · 0.92
TestIsLinuxFunction · 0.92
IsDockerRootlessFunction · 0.92
GetHostDockerInternalFunction · 0.92
checkOSTrustStoreFunction · 0.92
checkFirefoxStatusFunction · 0.92
TestCmdDebugTestFunction · 0.92

Calls

no outgoing calls

Tested by 6

TestMutagenSimpleFunction · 0.74
TestIsLinuxFunction · 0.74
TestCmdDebugTestFunction · 0.74