INNER CODE UNIT · Go

windowsPathToWSL

ddev/ddev · winpkg/installer_test.go:773

func windowsPathToWSL(winPath string) string {
	if len(winPath) >= 2 && winPath[1] == ':' {
		drive := strings.ToLower(string(winPath[0]))
		rest := strings.ReplaceAll(winPath[2:], "\\", "/")
		return "/mnt/" + drive + rest
	}
	return strings.ReplaceAll(winPath, "\\", "/")
}

// isDockerDesktopWorkingOnWindows checks if Docker Desktop is working on Windows
func isDockerDesktopWorkingOnWindows() bool {
	// Check if docker ps works directly on Windows
	_, err := exec.RunHostCommand("docker.exe", "ps")
	return err == nil
}

// cleanupTraditionalWindowsEnv cleans up Traditional Windows test environment
func cleanupTraditionalWindowsEnv(t *testing.T) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…