{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/gddo/issues/352","labels_url":"https://api.github.com/repos/golang/gddo/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/golang/gddo/issues/352/comments","events_url":"https://api.github.com/repos/golang/gddo/issues/352/events","html_url":"https://github.com/golang/gddo/issues/352","id":118173109,"number":352,"title":"godoc.org unable to display docs for a go-gettable package.","user":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars.githubusercontent.com/u/1924134?v=3","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-21T06:09:12Z","updated_at":"2015-11-23T06:09:36Z","closed_at":"2015-11-23T06:09:36Z","body":"The Go package with a vanity import path \"src.sourcegraph.com/vfs\" can be acquired with `go get`:\r\n\r\n```bash\r\n$ go get -u src.sourcegraph.com/vfs\r\n$ \r\n```\r\n\r\nIt also works on gotools.org:\r\n\r\nhttp://gotools.org/src.sourcegraph.com/vfs\r\n\r\nHowever, it results in a \"Not Found\" page on godoc.org:\r\n\r\nhttps://godoc.org/src.sourcegraph.com/vfs\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1924134/11317010/927d7db0-8fd2-11e5-9a75-ea8e7ec0740e.png)\r\n\r\n## Cause\r\n\r\nI've identified the cause for this issue. It happens because of a slightly incorrect logic for resolving vanity import paths for git repositories in `github.com/golang/gddo/gosrc` package. I will create a PR that explains the details and fixes it shortly. **Edit:** Made #353.\r\n\r\nIt happens with Go packages on src.sourcegraph.com because it's currently strict about its git clone URL. It will work if you do `git clone https://src.sourcegraph.com/vfs`, but it will not work if you add a \".git\" suffix like `git clone src.sourcegraph.com/vfs.git` (nor any other suffix; it only supports the canonical clone URL at this time). Most other hosts support both and that's why they were not affected."}}