Skip to content

Commit 9aee24b

Browse files
authored
Merge pull request #10711 from spowelljr/fixWSLDetection
Remove WSLENV empty check from IsMicrosoftWSL
2 parents b1def42 + 2f9acf8 commit 9aee24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/minikube/driver/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func NeedsPortForward(name string) bool {
174174
// checking for WSL env var based on this https://github.com/microsoft/WSL/issues/423#issuecomment-608237689
175175
// also based on https://github.com/microsoft/vscode/blob/90a39ba0d49d75e9a4d7e62a6121ad946ecebc58/resources/win32/bin/code.sh#L24
176176
func IsMicrosoftWSL() bool {
177-
return os.Getenv("WSL_DISTRO_NAME") != "" || os.Getenv("WSLPATH") != "" || os.Getenv("WSLENV") != ""
177+
return os.Getenv("WSL_DISTRO_NAME") != "" || os.Getenv("WSLPATH") != ""
178178
}
179179

180180
// HasResourceLimits returns true if driver can set resource limits such as memory size or CPU count.

0 commit comments

Comments
 (0)