{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/17262","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/17262/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/17262/comments","events_url":"https://api.github.com/repos/golang/go/issues/17262/events","html_url":"https://github.com/golang/go/issues/17262","id":179771596,"number":17262,"title":"cmd/go: assume GOPATH=$HOME/go if not set","user":{"login":"davecheney","id":7171,"avatar_url":"https://avatars.githubusercontent.com/u/7171?v=3","gravatar_id":"","url":"https://api.github.com/users/davecheney","html_url":"https://github.com/davecheney","followers_url":"https://api.github.com/users/davecheney/followers","following_url":"https://api.github.com/users/davecheney/following{/other_user}","gists_url":"https://api.github.com/users/davecheney/gists{/gist_id}","starred_url":"https://api.github.com/users/davecheney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecheney/subscriptions","organizations_url":"https://api.github.com/users/davecheney/orgs","repos_url":"https://api.github.com/users/davecheney/repos","events_url":"https://api.github.com/users/davecheney/events{/privacy}","received_events_url":"https://api.github.com/users/davecheney/received_events","type":"User","site_admin":false},"labels":[{"id":236419512,"url":"https://api.github.com/repos/golang/go/labels/Proposal","name":"Proposal","color":"ededed","default":false},{"id":246350233,"url":"https://api.github.com/repos/golang/go/labels/Proposal-Accepted","name":"Proposal-Accepted","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/38","html_url":"https://github.com/golang/go/milestones/Go1.8","labels_url":"https://api.github.com/repos/golang/go/milestones/38/labels","id":1709363,"number":38,"title":"Go1.8","description":"","creator":{"login":"griesemer","id":8528975,"avatar_url":"https://avatars.githubusercontent.com/u/8528975?v=3","gravatar_id":"","url":"https://api.github.com/users/griesemer","html_url":"https://github.com/griesemer","followers_url":"https://api.github.com/users/griesemer/followers","following_url":"https://api.github.com/users/griesemer/following{/other_user}","gists_url":"https://api.github.com/users/griesemer/gists{/gist_id}","starred_url":"https://api.github.com/users/griesemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griesemer/subscriptions","organizations_url":"https://api.github.com/users/griesemer/orgs","repos_url":"https://api.github.com/users/griesemer/repos","events_url":"https://api.github.com/users/griesemer/events{/privacy}","received_events_url":"https://api.github.com/users/griesemer/received_events","type":"User","site_admin":false},"open_issues":192,"closed_issues":478,"state":"open","created_at":"2016-04-15T16:30:23Z","updated_at":"2016-10-29T18:33:42Z","due_on":"2017-01-31T00:00:00Z","closed_at":null},"comments":121,"created_at":"2016-09-28T13:24:36Z","updated_at":"2016-10-29T18:36:28Z","closed_at":null,"body":"This proposal is a simplification of #12488.\r\n\r\nIn short, if the user has not set `$GOPATH` in their environment the `go` tool will default to a value of `GOPATH=$HOME/gocode`.\r\n<hr>\r\n*Rationale*\r\nAt the moment all the documentation we have says \"you have to set a GOPATH\", then people get distracted and upset because they don't understand why they have to do this.\r\n\r\nBy choosing a default GOPATH, we can make our documentation easier because we can say things like\r\n```\r\n$ go get github.com/foo/bar\r\n```\r\nwill check out the `github.com/foo/bar` repo into `$HOME/gocode/src/github.com/foo/bar`. \r\n\r\nWe don't need to distract newcomers with having to set an env var, all we need to do is put a little parenthetical note at the bottom of the page\r\n\r\n> `$HOME/gocode` is the default path to your go workspace. If you want to change this path, set the `GOPATH` variable to something of your choosing.\r\n\r\n*Compatibility*\r\nThis proposal only changes the experience for newcomers who have not chosen to set a `$GOPATH` variable. For anyone using Go 1.1-1.7 today, your experience will be unchanged as you are currently required to set `$GOPATH`."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/257108186","html_url":"https://github.com/golang/go/issues/17262#issuecomment-257108186","issue_url":"https://api.github.com/repos/golang/go/issues/17262","id":257108186,"user":{"login":"einthusan","id":1294473,"avatar_url":"https://avatars.githubusercontent.com/u/1294473?v=3","gravatar_id":"","url":"https://api.github.com/users/einthusan","html_url":"https://github.com/einthusan","followers_url":"https://api.github.com/users/einthusan/followers","following_url":"https://api.github.com/users/einthusan/following{/other_user}","gists_url":"https://api.github.com/users/einthusan/gists{/gist_id}","starred_url":"https://api.github.com/users/einthusan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/einthusan/subscriptions","organizations_url":"https://api.github.com/users/einthusan/orgs","repos_url":"https://api.github.com/users/einthusan/repos","events_url":"https://api.github.com/users/einthusan/events{/privacy}","received_events_url":"https://api.github.com/users/einthusan/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T18:36:28Z","updated_at":"2016-10-29T18:36:28Z","body":"Obviously I mean when no GOPATH has been set. Just update the error message that currently gets displayed. The adoption rate is there already.. Just need a bit of help instead of the current google it up method that new comers are doing."}}
{"actor":{"display_login":"einthusan"}}