Open Falco20019 opened 6 years ago
Very interesting. Would you like to fix it with a pull request pretty please :D
I don't know GoLang good enough to know how to differentiate between the different OS and what a good solution would look like. I just changed it to semicolon for me and did go install
since that fixed it for me. But I'm sure that's not the solution you want in the PR ;-)
Here is a snippet from stack overflow to help.
if runtime.GOOS == "windows" {
fmt.Println("Hello from Windows")
}
https://stackoverflow.com/questions/19847594/how-to-reliably-detect-os-platform-in-go
The rest should be easy, or am I missing something?
The directory list for GOPATH is concatenated using
envs[i] + ":" + tmpDir
. But Windows needs it to beenvs[i] + ";" + tmpDir
since the list separator is a semicolon.