{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/13506","labels_url":"https://api.github.com/repos/golang/go/issues/13506/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13506/comments","events_url":"https://api.github.com/repos/golang/go/issues/13506/events","html_url":"https://github.com/golang/go/issues/13506","id":120592482,"number":13506,"title":"x/tools/go/vcs: RepoRootForImportDynamic disallows vanity imports at the root of a domain","user":{"login":"zenazn","id":12960,"avatar_url":"https://avatars.githubusercontent.com/u/12960?v=3","gravatar_id":"","url":"https://api.github.com/users/zenazn","html_url":"https://github.com/zenazn","followers_url":"https://api.github.com/users/zenazn/followers","following_url":"https://api.github.com/users/zenazn/following{/other_user}","gists_url":"https://api.github.com/users/zenazn/gists{/gist_id}","starred_url":"https://api.github.com/users/zenazn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenazn/subscriptions","organizations_url":"https://api.github.com/users/zenazn/orgs","repos_url":"https://api.github.com/users/zenazn/repos","events_url":"https://api.github.com/users/zenazn/events{/privacy}","received_events_url":"https://api.github.com/users/zenazn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/22","html_url":"https://github.com/golang/go/milestones/Unreleased","labels_url":"https://api.github.com/repos/golang/go/milestones/22/labels","id":1067491,"number":22,"title":"Unreleased","description":"Issues that do not affect released Go code and binaries.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","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":436,"closed_issues":313,"state":"open","created_at":"2015-04-14T18:48:22Z","updated_at":"2015-12-29T00:04:01Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":3,"created_at":"2015-12-05T22:30:22Z","updated_at":"2015-12-29T06:00:29Z","closed_at":null,"body":"`vcs.RepoRootForImportDynamic` requires that all vanity imports contain at least one `/` character: https://github.com/golang/tools/blob/c0008c5889c0d5091cdfefd2bfb08bff96527879/go/vcs/vcs.go#L483-L486\r\n\r\nHowever, the documentation for vanity imports does not forbid vanity imports that do not contain a `/` (i.e., those at the root of a domain): https://golang.org/cmd/go/#hdr-Remote_import_paths\r\n\r\nAnd in fact, `go get` (I tested 1.5.2) appears to do just fine with a vanity import located at the root of a domain. You can try `go get goji.io` as an example of this behavior.\r\n\r\nThis originally surfaced as a bug report against godoc.org, which uses similar logic (although it does not actually use the same code): https://github.com/golang/gddo/issues/355. This bug report is, as much as anything, a spec clarification for that project."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/167723814","html_url":"https://github.com/golang/go/issues/13506#issuecomment-167723814","issue_url":"https://api.github.com/repos/golang/go/issues/13506","id":167723814,"user":{"login":"gopherbot","id":8566911,"avatar_url":"https://avatars.githubusercontent.com/u/8566911?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherbot","html_url":"https://github.com/gopherbot","followers_url":"https://api.github.com/users/gopherbot/followers","following_url":"https://api.github.com/users/gopherbot/following{/other_user}","gists_url":"https://api.github.com/users/gopherbot/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherbot/subscriptions","organizations_url":"https://api.github.com/users/gopherbot/orgs","repos_url":"https://api.github.com/users/gopherbot/repos","events_url":"https://api.github.com/users/gopherbot/events{/privacy}","received_events_url":"https://api.github.com/users/gopherbot/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T06:00:29Z","updated_at":"2015-12-29T06:00:29Z","body":"CL https://golang.org/cl/18152 mentions this issue."}}