-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/go: "go get github.com\alexbrainman\gowingui" should succeed on Mac #24233
Comments
Windows:
Mac:
This happens in which is called by On windows There is an inconsistency in behaviour between OSes with fileseparator = |
I'm pretty sure we should fix this, but marking it as needs decision just in case. @ianlancetaylor, @rsc? |
I agree. |
The fact that the backslashes work on Windows is intentional and not actually Windows-specific: go/src/cmd/go/internal/search/search.go Lines 352 to 357 in 5a7cfbc
We should figure out why they don't work on macOS. |
What version of Go are you using (
go version
)?go version go1.10 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
I run
command.
What did you expect to see?
I expected command to fail, because I used \ instead of / in package import path.
What did you see instead?
I see no error message, and I also see gowingui.exe in my %GOPATH%\bin directory.
Comments
I discovered this while investigating #24232
And if I run
the %GOPATH%\bin\gowingui.exe file does not have IMAGE_SUBSYSTEM_WINDOWS_GUI flag set properly.
So if this issue is rejected as working as intended, than we should fix cmd/go flag processing to avoid cases like #24232
Alex
The text was updated successfully, but these errors were encountered: