Not working with Windows
Falco20019 opened this issue · comments
The directory list for GOPATH is concatenated using envs[i] + ":" + tmpDir
. But Windows needs it to be envs[i] + ";" + tmpDir
since the list separator is a semicolon.
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?