{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/26250","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/26250/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/26250/comments","events_url":"https://api.github.com/repos/golang/go/issues/26250/events","html_url":"https://github.com/golang/go/issues/26250","id":338998312,"node_id":"MDU6SXNzdWUzMzg5OTgzMTI=","number":26250,"title":"x/vgo: can't use submodules along with \"parent\" modules","user":{"login":"mwf","id":3125891,"node_id":"MDQ6VXNlcjMxMjU4OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/3125891?v=4","gravatar_id":"","url":"https://api.github.com/users/mwf","html_url":"https://github.com/mwf","followers_url":"https://api.github.com/users/mwf/followers","following_url":"https://api.github.com/users/mwf/following{/other_user}","gists_url":"https://api.github.com/users/mwf/gists{/gist_id}","starred_url":"https://api.github.com/users/mwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwf/subscriptions","organizations_url":"https://api.github.com/users/mwf/orgs","repos_url":"https://api.github.com/users/mwf/repos","events_url":"https://api.github.com/users/mwf/events{/privacy}","received_events_url":"https://api.github.com/users/mwf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/71","html_url":"https://github.com/golang/go/milestone/71","labels_url":"https://api.github.com/repos/golang/go/milestones/71/labels","id":3130892,"node_id":"MDk6TWlsZXN0b25lMzEzMDg5Mg==","number":71,"title":"vgo","description":null,"creator":{"login":"rsc","id":104030,"node_id":"MDQ6VXNlcjEwNDAzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","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":42,"closed_issues":243,"state":"open","created_at":"2018-02-20T19:51:55Z","updated_at":"2018-07-12T03:18:25Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-07-06T16:24:24Z","updated_at":"2018-07-12T03:18:24Z","closed_at":"2018-07-12T03:18:24Z","author_association":"NONE","body":"### What version of Go are you using (`go version`)?\r\ngo version go1.10.3 darwin/amd64 vgo:2018-02-20.1\r\n\r\nLatest `vgo`:\r\n```\r\ncommit 6cd5a417451d8ee907692eded07ef1b6b53825b1 (HEAD -> master, origin/master, origin/HEAD)\r\nAuthor: Bryan C. Mills <bcmills@google.com>\r\nDate:   Mon Jul 2 16:43:34 2018 -0400\r\n\r\n    cmd/go/internal/modcmd: use the correct path in verifyMod\r\n```\r\n\r\n### What did you do?\r\n\r\nPlease refer to https://github.com/mwf/vgo-modules\r\n\r\nI'm very sorry, but this case doesn't have standalone example, because tagging revisions and active repo usage is involved.\r\n\r\nLet's assume we are in active development phase with versions v0.x.\r\n\r\nAt some point we decide to move some package to a standalone module, to split the dependencies and to have better semantic structure.\r\n\r\nThus cmd package is introduced to a separate module github.com/mwf/vgo-modules/cmd.\r\n\r\nBut it turns out you can't use both github.com/mwf/vgo-modules/cmd and github.com/mwf/vgo-modules at the same time. Have a look at example project.\r\n\r\n### What did you expect to see?\r\n\r\n`vgo get github.com/mwf/vgo-modules/cmd` should run without error and get the latest `github.com/mwf/vgo-modules/cmd v0.0.1`\r\n\r\n### What did you see instead?\r\n\r\n```\r\n$ cd ./example && vgo get github.com/mwf/vgo-modules/cmd\r\nvgo: import \"github.com/mwf/vgo-modules/cmd\": found in both github.com/mwf/vgo-modules v0.0.2 and github.com/mwf/vgo-modules/cmd v0.0.1\r\n```\r\n\r\nThe actual error is absolutely strange to me. Because formally `github.com/mwf/vgo-modules v0.0.2` **doesn't contain** `cmd` package:\r\n```\r\nvgo mod -packages\r\ngithub.com/mwf/vgo-modules\r\ngithub.com/mwf/vgo-modules/a\r\n```\r\n\r\nThis is a case not only for a refactoring (like introducing new modules for existing packages), but also if you make a brand-new submodule and try to use both \"parent\" and the new one. The error is the same. "}}
{"actor":{"display_login":"gopherbot"}}