{"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":"proposal: 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":[{"url":"https://api.github.com/repos/golang/go/labels/Proposal","name":"Proposal","color":"ededed"},{"url":"https://api.github.com/repos/golang/go/labels/Proposal-Accepted","name":"Proposal-Accepted","color":"009800"}],"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":256,"closed_issues":416,"state":"open","created_at":"2016-04-15T16:30:23Z","updated_at":"2016-10-25T17:22:37Z","due_on":"2017-01-31T00:00:00Z","closed_at":null},"comments":81,"created_at":"2016-09-28T13:24:36Z","updated_at":"2016-10-25T18:15:08Z","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/256117462","html_url":"https://github.com/golang/go/issues/17262#issuecomment-256117462","issue_url":"https://api.github.com/repos/golang/go/issues/17262","id":256117462,"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},"created_at":"2016-10-25T18:15:07Z","updated_at":"2016-10-25T18:15:07Z","body":"You assume that new users prefer to install from the tar.gz. I can cite no\nnumbers, but believe you answer is based towards Linux installations, which\nare the third most popular installation target for go.\n\nOn Tue, 25 Oct 2016, 20:28 Krishna Srinivas <notifications@github.com>\nwrote:\n\n> @mvdan <https://github.com/mvdan> correct, for users who don't want to\n> use root privileges for installation (and hence high chance of installing\n> Go in ~/go) we are not making it any easier to get things up and running as\n> they will have to explicitly set GOPATH to something else. This can be\n> easily fixed if GOPATH is either ~/gopath or ~/gocode\n>\n> For non-root installation, if new users have to take advantage of default\n> GOPATH=~/go then the documentation has to be made slightly more complicated\n> by explicity asking users to use tar -C option so as not to install it at\n> ~/go\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/golang/go/issues/17262#issuecomment-255984498>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AAAcAxqiBgwlXv4fk8CPk0gsd5h81yYmks5q3cvBgaJpZM4KI0I2>\n> .\n>\n"}}
{"actor":{"display_login":"davecheney"}}