{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/24233","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/24233/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/24233/comments","events_url":"https://api.github.com/repos/golang/go/issues/24233/events","html_url":"https://github.com/golang/go/issues/24233","id":302053082,"node_id":"MDU6SXNzdWUzMDIwNTMwODI=","number":24233,"title":"cmd/go: \"go get github.com\\alexbrainman\\gowingui\" should fail","user":{"login":"alexbrainman","id":9796621,"node_id":"MDQ6VXNlcjk3OTY2MjE=","avatar_url":"https://avatars2.githubusercontent.com/u/9796621?v=4","gravatar_id":"","url":"https://api.github.com/users/alexbrainman","html_url":"https://github.com/alexbrainman","followers_url":"https://api.github.com/users/alexbrainman/followers","following_url":"https://api.github.com/users/alexbrainman/following{/other_user}","gists_url":"https://api.github.com/users/alexbrainman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbrainman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbrainman/subscriptions","organizations_url":"https://api.github.com/users/alexbrainman/orgs","repos_url":"https://api.github.com/users/alexbrainman/repos","events_url":"https://api.github.com/users/alexbrainman/events{/privacy}","received_events_url":"https://api.github.com/users/alexbrainman/received_events","type":"User","site_admin":false},"labels":[{"id":373399998,"node_id":"MDU6TGFiZWwzNzMzOTk5OTg=","url":"https://api.github.com/repos/golang/go/labels/NeedsFix","name":"NeedsFix","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/65","html_url":"https://github.com/golang/go/milestone/65","labels_url":"https://api.github.com/repos/golang/go/milestones/65/labels","id":3072996,"node_id":"MDk6TWlsZXN0b25lMzA3Mjk5Ng==","number":65,"title":"Go1.12","description":"","creator":{"login":"rsc","id":104030,"node_id":"MDQ6VXNlcjEwNDAzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":755,"closed_issues":313,"state":"open","created_at":"2018-01-29T21:17:52Z","updated_at":"2018-10-24T19:06:22Z","due_on":"2019-01-31T08:00:00Z","closed_at":null},"comments":3,"created_at":"2018-03-04T03:11:22Z","updated_at":"2018-10-24T19:11:25Z","closed_at":null,"author_association":"MEMBER","body":"### What version of Go are you using (`go version`)?\r\n\r\ngo version go1.10 windows/amd64\r\n\r\n### Does this issue reproduce with the latest release?\r\n\r\nYes\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n\r\n```\r\nset GOARCH=amd64\r\nset GOBIN=\r\nset GOCACHE=C:\\Users\\Alex\\AppData\\Local\\go-build\r\nset GOEXE=.exe\r\nset GOHOSTARCH=amd64\r\nset GOHOSTOS=windows\r\nset GOOS=windows\r\nset GOPATH=c:\\users\\alex\\dev\r\nset GORACE=\r\nset GOROOT=c:\\users\\alex\\dev\\go\r\nset GOTMPDIR=\r\nset GOTOOLDIR=c:\\users\\alex\\dev\\go\\pkg\\tool\\windows_amd64\r\nset GCCGO=gccgo\r\nset CC=gcc\r\nset CXX=g++\r\nset CGO_ENABLED=1\r\nset CGO_CFLAGS=-g -O2\r\nset CGO_CPPFLAGS=\r\nset CGO_CXXFLAGS=-g -O2\r\nset CGO_FFLAGS=-g -O2\r\nset CGO_LDFLAGS=-g -O2\r\nset PKG_CONFIG=pkg-config\r\nset GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\\Users\\Alex\\AppData\\Local\\Temp\\go-build838310042=/tmp/go-build -gno-record-gcc-switches\r\n```\r\n\r\n### What did you do?\r\n\r\nI run\r\n```\r\ngo get github.com\\alexbrainman\\gowingui\r\n````\r\ncommand.\r\n\r\n### What did you expect to see?\r\n\r\nI expected command to fail, because I used \\ instead of / in package import path.\r\n\r\n### What did you see instead?\r\n\r\nI see no error message, and I also see gowingui.exe in my %GOPATH%\\bin directory.\r\n\r\n### Comments\r\n\r\nI discovered this while investigating #24232 \r\n\r\nAnd if I run\r\n```\r\ngo install -ldflags \"-H windowsgui\" github.com\\alexbrainman\\gowingui\r\n```\r\nthe %GOPATH%\\bin\\gowingui.exe file does not have IMAGE_SUBSYSTEM_WINDOWS_GUI flag set properly.\r\n\r\nSo if this issue is rejected as working as intended, than we should fix cmd/go flag processing to avoid cases like #24232 \r\n\r\nAlex"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/432791379","html_url":"https://github.com/golang/go/issues/24233#issuecomment-432791379","issue_url":"https://api.github.com/repos/golang/go/issues/24233","id":432791379,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjc5MTM3OQ==","user":{"login":"bcmills","id":5200974,"node_id":"MDQ6VXNlcjUyMDA5NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5200974?v=4","gravatar_id":"","url":"https://api.github.com/users/bcmills","html_url":"https://github.com/bcmills","followers_url":"https://api.github.com/users/bcmills/followers","following_url":"https://api.github.com/users/bcmills/following{/other_user}","gists_url":"https://api.github.com/users/bcmills/gists{/gist_id}","starred_url":"https://api.github.com/users/bcmills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcmills/subscriptions","organizations_url":"https://api.github.com/users/bcmills/orgs","repos_url":"https://api.github.com/users/bcmills/repos","events_url":"https://api.github.com/users/bcmills/events{/privacy}","received_events_url":"https://api.github.com/users/bcmills/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T19:11:25Z","updated_at":"2018-10-24T19:11:25Z","author_association":"MEMBER","body":"The fact that the backslashes work on Windows is intentional:\r\nhttps://github.com/golang/go/blob/5a7cfbc0117bce314c3f079ece459173b9efc854/src/cmd/go/internal/search/search.go#L352-L357\r\n\r\nWe should figure out why they don't work on macOS."}}
{"actor":{"display_login":"bcmills"}}