{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/12111","labels_url":"https://api.github.com/repos/golang/go/issues/12111/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12111/comments","events_url":"https://api.github.com/repos/golang/go/issues/12111/events","html_url":"https://github.com/golang/go/issues/12111","id":100271776,"number":12111,"title":"cmd/go: unclear error message with GO15VENDOREXPERIMENT and import rewriting","user":{"login":"pwaller","id":438648,"avatar_url":"https://avatars.githubusercontent.com/u/438648?v=3","gravatar_id":"","url":"https://api.github.com/users/pwaller","html_url":"https://github.com/pwaller","followers_url":"https://api.github.com/users/pwaller/followers","following_url":"https://api.github.com/users/pwaller/following{/other_user}","gists_url":"https://api.github.com/users/pwaller/gists{/gist_id}","starred_url":"https://api.github.com/users/pwaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwaller/subscriptions","organizations_url":"https://api.github.com/users/pwaller/orgs","repos_url":"https://api.github.com/users/pwaller/repos","events_url":"https://api.github.com/users/pwaller/events{/privacy}","received_events_url":"https://api.github.com/users/pwaller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/24","html_url":"https://github.com/golang/go/milestones/Go1.6","labels_url":"https://api.github.com/repos/golang/go/milestones/24/labels","id":1096159,"number":24,"title":"Go1.6","description":"","creator":{"login":"josharian","id":67496,"avatar_url":"https://avatars.githubusercontent.com/u/67496?v=3","gravatar_id":"","url":"https://api.github.com/users/josharian","html_url":"https://github.com/josharian","followers_url":"https://api.github.com/users/josharian/followers","following_url":"https://api.github.com/users/josharian/following{/other_user}","gists_url":"https://api.github.com/users/josharian/gists{/gist_id}","starred_url":"https://api.github.com/users/josharian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josharian/subscriptions","organizations_url":"https://api.github.com/users/josharian/orgs","repos_url":"https://api.github.com/users/josharian/repos","events_url":"https://api.github.com/users/josharian/events{/privacy}","received_events_url":"https://api.github.com/users/josharian/received_events","type":"User","site_admin":false},"open_issues":323,"closed_issues":252,"state":"open","created_at":"2015-05-05T02:39:06Z","updated_at":"2015-11-05T01:40:16Z","due_on":"2016-01-31T08:00:00Z","closed_at":null},"comments":8,"created_at":"2015-08-11T09:47:17Z","updated_at":"2015-11-05T01:43:02Z","closed_at":null,"body":"[Link to original mailing list post](https://groups.google.com/d/topic/golang-nuts/sbzs9j5M-hs/discussion).\r\n\r\nOver here, I have a demo package: https://github.com/pwaller/vendor-collision\r\n\r\nOn go1.5rc1, if you git clone it and do `go build` (not `go get`), you get the following:\r\n\r\n````\r\n$ go build -v\r\npackage github.com/pwaller/vendor-collision\r\n    imports vendor.org/p\r\n    imports vendor.org/p/vendor/example.org/library: must be imported as example.org/library\r\n```\r\n\r\n\r\nTo clarify: \"vendor-collision\" refers to the collision of vendoring methods, not packages, or anything like that.\r\n\r\nAlso, for the record, this is what the package looks like:\r\n\r\n```\r\n~/.local/src/github.com/pwaller/vendor-collision$ tree\r\n.\r\n├── main.go\r\n└── vendor\r\n    └── vendor.org\r\n        └── p\r\n            ├── p.go\r\n            └── vendor\r\n                └── example.com\r\n                    └── library\r\n                        └── library.go\r\n\r\n6 directories, 3 files\r\n```\r\n\r\n`main.go` imports `vendor.org/p` which directly imports `vendor.org/p/vendor/example.com/library`, where `vendor.org/p` should import `example.com/library` under the `GO15VENDOREXPERIMENT` regime, but `vendor.org/p`'s code is in a git submodule. I don't want to poke `vendor.org/p`'s code if I can avoid it. (And persuading them to change to the new method will break people's ability to easily build on go1.4)\r\n\r\n/cc @davecheney "},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/153926732","html_url":"https://github.com/golang/go/issues/12111#issuecomment-153926732","issue_url":"https://api.github.com/repos/golang/go/issues/12111","id":153926732,"user":{"login":"kardianos","id":755121,"avatar_url":"https://avatars.githubusercontent.com/u/755121?v=3","gravatar_id":"","url":"https://api.github.com/users/kardianos","html_url":"https://github.com/kardianos","followers_url":"https://api.github.com/users/kardianos/followers","following_url":"https://api.github.com/users/kardianos/following{/other_user}","gists_url":"https://api.github.com/users/kardianos/gists{/gist_id}","starred_url":"https://api.github.com/users/kardianos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kardianos/subscriptions","organizations_url":"https://api.github.com/users/kardianos/orgs","repos_url":"https://api.github.com/users/kardianos/repos","events_url":"https://api.github.com/users/kardianos/events{/privacy}","received_events_url":"https://api.github.com/users/kardianos/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T01:43:02Z","updated_at":"2015-11-05T01:43:02Z","body":"@rsc I think the part that _may_ be unclear is that it doesn't state \"vendor\" path segments are disallowed to be explicitly used. This might be clearer to people who use import path rewriting into the vendor folder. maybe.\r\n\r\nIn retrospect, the existing error message is probably fine."}}