Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with Windows #43

Open
Falco20019 opened this issue Apr 13, 2018 · 3 comments
Open

Not working with Windows #43

Falco20019 opened this issue Apr 13, 2018 · 3 comments

Comments

@Falco20019
Copy link

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.

@awalterschulze
Copy link
Member

Very interesting. Would you like to fix it with a pull request pretty please :D

@Falco20019
Copy link
Author

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 ;-)

@awalterschulze
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants