{"action":"created","issue":{"url":"https://api.github.com/repos/gogo/letmegrpc/issues/41","repository_url":"https://api.github.com/repos/gogo/letmegrpc","labels_url":"https://api.github.com/repos/gogo/letmegrpc/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/gogo/letmegrpc/issues/41/comments","events_url":"https://api.github.com/repos/gogo/letmegrpc/issues/41/events","html_url":"https://github.com/gogo/letmegrpc/issues/41","id":305138814,"node_id":"MDU6SXNzdWUzMDUxMzg4MTQ=","number":41,"title":"Issues generating multiple files from same package","user":{"login":"MSalopek","id":35486649,"node_id":"MDQ6VXNlcjM1NDg2NjQ5","avatar_url":"https://avatars2.githubusercontent.com/u/35486649?v=4","gravatar_id":"","url":"https://api.github.com/users/MSalopek","html_url":"https://github.com/MSalopek","followers_url":"https://api.github.com/users/MSalopek/followers","following_url":"https://api.github.com/users/MSalopek/following{/other_user}","gists_url":"https://api.github.com/users/MSalopek/gists{/gist_id}","starred_url":"https://api.github.com/users/MSalopek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSalopek/subscriptions","organizations_url":"https://api.github.com/users/MSalopek/orgs","repos_url":"https://api.github.com/users/MSalopek/repos","events_url":"https://api.github.com/users/MSalopek/events{/privacy}","received_events_url":"https://api.github.com/users/MSalopek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-14T12:30:45Z","updated_at":"2018-06-08T18:01:54Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nConflicts happen after generating separate files that are a part of the same package.\r\nSuch generated files have functions and variables with the same name which causes issues.\r\n\r\nExample: \r\nLets say I have 2 files in  \"package example\" named ex1.proto and ex2.proto.\r\nWhen I run protoc --letmegrpc (...) I get var Header, var Footer, and function func NewHandler defined  in both ex1.letmegrpc.go and ex2.letmegrpc.go which causes issues.\r\n\r\nI may have a workaround for this issue."},"comment":{"url":"https://api.github.com/repos/gogo/letmegrpc/issues/comments/395840934","html_url":"https://github.com/gogo/letmegrpc/issues/41#issuecomment-395840934","issue_url":"https://api.github.com/repos/gogo/letmegrpc/issues/41","id":395840934,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTg0MDkzNA==","user":{"login":"con-ji","id":20808671,"node_id":"MDQ6VXNlcjIwODA4Njcx","avatar_url":"https://avatars0.githubusercontent.com/u/20808671?v=4","gravatar_id":"","url":"https://api.github.com/users/con-ji","html_url":"https://github.com/con-ji","followers_url":"https://api.github.com/users/con-ji/followers","following_url":"https://api.github.com/users/con-ji/following{/other_user}","gists_url":"https://api.github.com/users/con-ji/gists{/gist_id}","starred_url":"https://api.github.com/users/con-ji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/con-ji/subscriptions","organizations_url":"https://api.github.com/users/con-ji/orgs","repos_url":"https://api.github.com/users/con-ji/repos","events_url":"https://api.github.com/users/con-ji/events{/privacy}","received_events_url":"https://api.github.com/users/con-ji/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T18:01:54Z","updated_at":"2018-06-08T18:01:54Z","author_association":"NONE","body":"My bad, it seems to work fine when invoking `protoc` with the proper paths set. I was able to work around the repeated fields by only compiling the main `.proto` with `--letmegrpc_out`, then removing the import `import _ \".\"`. It's a little bit hacky, but it works."}}
{"actor":{"display_login":"con-ji"}}