{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/26401","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/26401/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/26401/comments","events_url":"https://api.github.com/repos/golang/go/issues/26401/events","html_url":"https://github.com/golang/go/issues/26401","id":341593652,"node_id":"MDU6SXNzdWUzNDE1OTM2NTI=","number":26401,"title":"cmd/go: exclude $GOPATH/src/mod from “all” and “...” patterns in GOPATH mode","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},"labels":[{"id":992189327,"node_id":"MDU6TGFiZWw5OTIxODkzMjc=","url":"https://api.github.com/repos/golang/go/labels/modules","name":"modules","color":"bac2ff","default":false},{"id":626114820,"node_id":"MDU6TGFiZWw2MjYxMTQ4MjA=","url":"https://api.github.com/repos/golang/go/labels/release-blocker","name":"release-blocker","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/62","html_url":"https://github.com/golang/go/milestone/62","labels_url":"https://api.github.com/repos/golang/go/milestones/62/labels","id":2827591,"node_id":"MDk6TWlsZXN0b25lMjgyNzU5MQ==","number":62,"title":"Go1.11","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":96,"closed_issues":812,"state":"open","created_at":"2017-10-10T13:39:17Z","updated_at":"2018-07-24T23:54:52Z","due_on":"2018-07-31T07:00:00Z","closed_at":null},"comments":5,"created_at":"2018-07-16T16:42:25Z","updated_at":"2018-07-25T08:31:38Z","closed_at":null,"author_association":"MEMBER","body":"After performing a `go build` in module mode, `go build all` in GOPATH mode emits a bunch of errors due to import path mismatches in `$GOPATH/src/mod`.\r\n\r\nSince the code in `$GOPATH/src/mod` isn't intended to be buildable in GOPATH mode in the first place, we should explicitly ignore it.\r\n\r\n```\r\n~/src$ cd $GOPATH/src\r\n\r\n~/src$ go get rsc.io/sampler\r\n\r\n~/src$ pushd rsc.io/sampler\r\n~/src/rsc.io/sampler ~/src\r\n\r\n~/src/rsc.io/sampler$ GO111MODULE=on go build .\r\ngo: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c\r\ngo: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c\r\n\r\n~/src/rsc.io/sampler$ popd\r\n~/src\r\n\r\n~/src$ GO111MODULE=off go build all 2>&1 | grep mod/ | head -n 10\r\ncan't load package: package mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c: disallowed import path \"mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c\"\r\ncan't load package: package mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/cases: disallowed import path \"mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/cases\"\r\ncan't load package: package mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/cmd/gotext: disallowed import path \"mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/cmd/gotext\"\r\ncan't load package: package mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/collate: disallowed import path \"mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/collate\"\r\ncan't load package: package mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/collate/build: disallowed import path \"mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/collate/build\"\r\ncan't load package: package mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/collate/tools/colcmp: disallowed import path \"mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/collate/tools/colcmp\"\r\ncan't load package: package mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/currency: disallowed import path \"mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/currency\"\r\ncan't load package: package mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/encoding: disallowed import path \"mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/encoding\"\r\ncan't load package: package mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/encoding/charmap: disallowed import path \"mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/encoding/charmap\"\r\ncan't load package: package mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/encoding/htmlindex: disallowed import path \"mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c/encoding/htmlindex\"\r\n```\r\n\r\n(CC: @rsc)"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/407677171","html_url":"https://github.com/golang/go/issues/26401#issuecomment-407677171","issue_url":"https://api.github.com/repos/golang/go/issues/26401","id":407677171,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzY3NzE3MQ==","user":{"login":"anacrolix","id":988750,"node_id":"MDQ6VXNlcjk4ODc1MA==","avatar_url":"https://avatars1.githubusercontent.com/u/988750?v=4","gravatar_id":"","url":"https://api.github.com/users/anacrolix","html_url":"https://github.com/anacrolix","followers_url":"https://api.github.com/users/anacrolix/followers","following_url":"https://api.github.com/users/anacrolix/following{/other_user}","gists_url":"https://api.github.com/users/anacrolix/gists{/gist_id}","starred_url":"https://api.github.com/users/anacrolix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anacrolix/subscriptions","organizations_url":"https://api.github.com/users/anacrolix/orgs","repos_url":"https://api.github.com/users/anacrolix/repos","events_url":"https://api.github.com/users/anacrolix/events{/privacy}","received_events_url":"https://api.github.com/users/anacrolix/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T08:31:38Z","updated_at":"2018-07-25T08:31:38Z","author_association":"CONTRIBUTOR","body":"How do those people setting $GOPATH=$HOME rationalize pkg? .mod seems good if the existing tools work with that."}}
{"actor":{"display_login":"anacrolix"}}