{"action":"created","issue":{"url":"https://api.github.com/repos/vektra/mockery/issues/77","repository_url":"https://api.github.com/repos/vektra/mockery","labels_url":"https://api.github.com/repos/vektra/mockery/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/vektra/mockery/issues/77/comments","events_url":"https://api.github.com/repos/vektra/mockery/issues/77/events","html_url":"https://github.com/vektra/mockery/issues/77","id":151449650,"number":77,"title":"mock generation fails if another package exists in the same directory as the package that contains the interface","user":{"login":"tescherm","id":199097,"avatar_url":"https://avatars.githubusercontent.com/u/199097?v=3","gravatar_id":"","url":"https://api.github.com/users/tescherm","html_url":"https://github.com/tescherm","followers_url":"https://api.github.com/users/tescherm/followers","following_url":"https://api.github.com/users/tescherm/following{/other_user}","gists_url":"https://api.github.com/users/tescherm/gists{/gist_id}","starred_url":"https://api.github.com/users/tescherm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tescherm/subscriptions","organizations_url":"https://api.github.com/users/tescherm/orgs","repos_url":"https://api.github.com/users/tescherm/repos","events_url":"https://api.github.com/users/tescherm/events{/privacy}","received_events_url":"https://api.github.com/users/tescherm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-04-27T17:55:29Z","updated_at":"2016-07-05T23:49:49Z","closed_at":null,"body":"For example, if I have a directory structure similar to:\r\n\r\n```\r\n/client/client.go\r\n/client/client_test.go\r\n```\r\n\r\nWhere `client.go` is in the `client` package and `client_test.go` is in the `client_test` package, I see the following error when generating a mock:\r\n\r\n```\r\nError parsing file:  client_test.go:3:1: package client_test; expected client\r\n```\r\n\r\nThe current workaround is to temporarily delete the `*_test` package before running mockery to generate the mock.\r\n"},"comment":{"url":"https://api.github.com/repos/vektra/mockery/issues/comments/230635767","html_url":"https://github.com/vektra/mockery/issues/77#issuecomment-230635767","issue_url":"https://api.github.com/repos/vektra/mockery/issues/77","id":230635767,"user":{"login":"IvanMalison","id":1246619,"avatar_url":"https://avatars.githubusercontent.com/u/1246619?v=3","gravatar_id":"","url":"https://api.github.com/users/IvanMalison","html_url":"https://github.com/IvanMalison","followers_url":"https://api.github.com/users/IvanMalison/followers","following_url":"https://api.github.com/users/IvanMalison/following{/other_user}","gists_url":"https://api.github.com/users/IvanMalison/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanMalison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanMalison/subscriptions","organizations_url":"https://api.github.com/users/IvanMalison/orgs","repos_url":"https://api.github.com/users/IvanMalison/repos","events_url":"https://api.github.com/users/IvanMalison/events{/privacy}","received_events_url":"https://api.github.com/users/IvanMalison/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T23:49:49Z","updated_at":"2016-07-05T23:49:49Z","body":"@xeger did you check out my pull request?"}}
{"actor":{"display_login":"IvanMalison"}}