-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.kind/regressionCategorizes issue or PR as related to a regression from a prior release.Categorizes issue or PR as related to a regression from a prior release.os/wsl-windowsmicrosoft wsl related issuesmicrosoft wsl related issuespriority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.top-10-issuesTop 10 support issuesTop 10 support issues
Milestone
Description
The offending function below is incorrectly assuming that if WSLENV has a non-empty value, that the shell is an WSL shell. According to this post, this environment variable is used for sharing variables into new WSL sessions, and is set within Windows too.
minikube/pkg/minikube/driver/driver.go
Lines 174 to 176 in 51ec098
| func IsMicrosoftWSL() bool { | |
| return os.Getenv("WSL_DISTRO_NAME") != "" || os.Getenv("WSLPATH") != "" || os.Getenv("WSLENV") != "" | |
| } |
Steps to reproduce the issue:
- Ensure the
WSLENVenvironment variable has a non-empty value. Mine isWT_SESSION::WT_PROFILE_ID - Run
minikubefrom a regular Windowscmd.exeshell - Observe the incorrect output
> minikube docker-env
❌ Exiting due to MK_WRONG_BINARY_WSL: You are trying to run windows .exe binary inside WSL, for better integration please use Linux binary instead (Download at https://minikube.sigs.k8s.io/docs/start/.). Otherwise if you still want to do this, you can do it using --force
radugrecu, lewis52ravens and ottnorml
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.kind/regressionCategorizes issue or PR as related to a regression from a prior release.Categorizes issue or PR as related to a regression from a prior release.os/wsl-windowsmicrosoft wsl related issuesmicrosoft wsl related issuespriority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.top-10-issuesTop 10 support issuesTop 10 support issues