{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9508","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9508/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9508/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9508/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/9508","id":98106511,"number":9508,"title":"gitlab does not support to get sub-package by ``go get``","user":{"login":"hvnsweeting","id":1000665,"avatar_url":"https://avatars.githubusercontent.com/u/1000665?v=3","gravatar_id":"","url":"https://api.github.com/users/hvnsweeting","html_url":"https://github.com/hvnsweeting","followers_url":"https://api.github.com/users/hvnsweeting/followers","following_url":"https://api.github.com/users/hvnsweeting/following{/other_user}","gists_url":"https://api.github.com/users/hvnsweeting/gists{/gist_id}","starred_url":"https://api.github.com/users/hvnsweeting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvnsweeting/subscriptions","organizations_url":"https://api.github.com/users/hvnsweeting/orgs","repos_url":"https://api.github.com/users/hvnsweeting/repos","events_url":"https://api.github.com/users/hvnsweeting/events{/privacy}","received_events_url":"https://api.github.com/users/hvnsweeting/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-07-30T07:56:31Z","updated_at":"2015-12-30T10:11:48Z","closed_at":null,"body":"I tried this with gitlab.com, so that probably contains the newest stable version of gitlabhq:\r\n\r\n````\r\n$ go get -v gitlab.com/hvn_familug/pikachu/raichu\r\nFetching https://gitlab.com/hvn_familug/pikachu/raichu?go-get=1\r\nParsing meta tags from https://gitlab.com/hvn_familug/pikachu/raichu?go-get=1 (status code 200)\r\nimport \"gitlab.com/hvn_familug/pikachu/raichu\": parse https://gitlab.com/hvn_familug/pikachu/raichu?go-get=1: no go-import meta tags\r\npackage gitlab.com/hvn_familug/pikachu/raichu: unrecognized import path \"gitlab.com/hvn_familug/pikachu/raichu\"\r\n$ go get -v gitlab.com/hvn_familug/pikachu\r\nFetching https://gitlab.com/hvn_familug/pikachu?go-get=1\r\nParsing meta tags from https://gitlab.com/hvn_familug/pikachu?go-get=1 (status code 200)\r\nget \"gitlab.com/hvn_familug/pikachu\": found meta tag main.metaImport{Prefix:\"gitlab.com/hvn_familug/pikachu\", VCS:\"git\", RepoRoot:\"https://gitlab.com/hvn_familug/pikachu.git\"} at https://gitlab.com/hvn_familug/pikachu?go-get=1\r\n````\r\n\r\nOn my gitlab 7.3 private server, it's the same.\r\n\r\nWhen github, and golang.org work, they all returned correct RepoRoot:\r\n\r\n````\r\n$ go get -v github.com/astaxie/beego/config\r\ngithub.com/astaxie/beego (download)\r\n\r\n$ godep restore -v\r\n...\r\n godep: get \"golang.org/x/crypto/cast5\": found meta tag vcs.metaImport{Prefix:\"golang.org/x/crypto\", VCS:\"git\", RepoRoot:\"https://go.googlesource.com/crypto\"} at https://golang.org/x/crypto/cast5$\r\ngo-get=1\r\ngodep: get \"golang.org/x/crypto/cast5\": verifying non-authoritative meta tag\r\ngodep: get \"golang.org/x/crypto/openpgp\": found meta tag vcs.metaImport{Prefix:\"golang.org/x/crypto\", VCS:\"git\", RepoRoot:\"https://go.googlesource.com/crypto\"} at https://golang.org/x/crypto/ope$\r\npgp?go-get=1\r\n````\r\n\r\nhttps://github.com/gitlabhq/gitlabhq/pull/5958 only support get the package if it's at root of the repo."},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/167972379","html_url":"https://github.com/gitlabhq/gitlabhq/issues/9508#issuecomment-167972379","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/9508","id":167972379,"user":{"login":"porkcharsui","id":43473,"avatar_url":"https://avatars.githubusercontent.com/u/43473?v=3","gravatar_id":"","url":"https://api.github.com/users/porkcharsui","html_url":"https://github.com/porkcharsui","followers_url":"https://api.github.com/users/porkcharsui/followers","following_url":"https://api.github.com/users/porkcharsui/following{/other_user}","gists_url":"https://api.github.com/users/porkcharsui/gists{/gist_id}","starred_url":"https://api.github.com/users/porkcharsui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porkcharsui/subscriptions","organizations_url":"https://api.github.com/users/porkcharsui/orgs","repos_url":"https://api.github.com/users/porkcharsui/repos","events_url":"https://api.github.com/users/porkcharsui/events{/privacy}","received_events_url":"https://api.github.com/users/porkcharsui/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T10:11:48Z","updated_at":"2015-12-30T10:11:48Z","body":"@stanhu The meta tag implementation is pretty straight forward and simply tells `go get` where it should git clone from and for Gitlab this is always `group/project` for any package under the project.\r\n\r\nThe only issues I have encountered testing for a workaround occur when this code path is triggered improperly for paths like these: \r\n* group/project/\r\n* group/project.git/\r\n(Note: I have updated the regex in my original post to fix for this)\r\n"}}