{"action":"closed","issue":{"url":"https://api.github.com/repos/kardianos/govendor/issues/59","labels_url":"https://api.github.com/repos/kardianos/govendor/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/kardianos/govendor/issues/59/comments","events_url":"https://api.github.com/repos/kardianos/govendor/issues/59/events","html_url":"https://github.com/kardianos/govendor/issues/59","id":116481349,"number":59,"title":"rewrite: main packages mixed in normal package don't have imports rewritten, resulting in cyclic dependencies","user":{"login":"ansel1","id":107825,"avatar_url":"https://avatars.githubusercontent.com/u/107825?v=3","gravatar_id":"","url":"https://api.github.com/users/ansel1","html_url":"https://github.com/ansel1","followers_url":"https://api.github.com/users/ansel1/followers","following_url":"https://api.github.com/users/ansel1/following{/other_user}","gists_url":"https://api.github.com/users/ansel1/gists{/gist_id}","starred_url":"https://api.github.com/users/ansel1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansel1/subscriptions","organizations_url":"https://api.github.com/users/ansel1/orgs","repos_url":"https://api.github.com/users/ansel1/repos","events_url":"https://api.github.com/users/ansel1/events{/privacy}","received_events_url":"https://api.github.com/users/ansel1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T05:15:40Z","updated_at":"2015-11-15T06:46:28Z","closed_at":"2015-11-15T06:46:28Z","body":"try this, in an empty package, after `govendor init`:\r\n\r\n    govendor add github.com/lib/pq\r\n    govendor list\r\n\r\noutput:\r\n\r\n    u github.com/lib/pq\r\n    e github.com/lib/pq/oid\r\n\r\nLooks like an external dependency was missed.  Try adding it:\r\n\r\n    govendor add +e\r\n    govendor list\r\n\r\noutput:\r\n\r\n    v github.com/lib/pq\r\n    v github.com/lib/pq/oid\r\n\r\nThose should be unused, since I have no source files at all.  I believe the reason they appear as `v` is because they refer to each other.\r\n\r\n    > govendor list -v\r\n    v github.com/lib/pq ::/internal/github.com/lib/pq\r\n      └── gitlab.protectv.local/ncryptify/russ.git/internal/github.com/lib/pq/oid\r\n    v github.com/lib/pq/oid ::/internal/github.com/lib/pq/oid\r\n      └── gitlab.protectv.local/ncryptify/russ.git/internal/github.com/lib/pq\r\n\r\nThe `oid` package has some normal source files in package \"oid\", and one source in package \"main\" with an \"ignore\" build tag.  That main source file's import statement is never rewritten by govendor, even though I don't currently have govendor configured to ignore the \"ignore\" build tag.\r\n\r\nThe workaround to at least avoid the import cycle is to ignore the \"ignore\" build tag in vendor.json"}}