{"action":"created","issue":{"url":"https://api.github.com/repos/gogo/protobuf/issues/325","repository_url":"https://api.github.com/repos/gogo/protobuf","labels_url":"https://api.github.com/repos/gogo/protobuf/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/gogo/protobuf/issues/325/comments","events_url":"https://api.github.com/repos/gogo/protobuf/issues/325/events","html_url":"https://github.com/gogo/protobuf/issues/325","id":250677299,"number":325,"title":"can't compile go code using google.protobuf.Timestamp","user":{"login":"utrack","id":3862920,"avatar_url":"https://avatars1.githubusercontent.com/u/3862920?v=4","gravatar_id":"","url":"https://api.github.com/users/utrack","html_url":"https://github.com/utrack","followers_url":"https://api.github.com/users/utrack/followers","following_url":"https://api.github.com/users/utrack/following{/other_user}","gists_url":"https://api.github.com/users/utrack/gists{/gist_id}","starred_url":"https://api.github.com/users/utrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utrack/subscriptions","organizations_url":"https://api.github.com/users/utrack/orgs","repos_url":"https://api.github.com/users/utrack/repos","events_url":"https://api.github.com/users/utrack/events{/privacy}","received_events_url":"https://api.github.com/users/utrack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-08-16T15:57:11Z","updated_at":"2017-08-17T07:22:11Z","closed_at":null,"body":"Hi! I've got a protofile like that:\r\n```\r\nsyntax = \"proto3\";\r\npackage pb;\r\n\r\nimport \"google/api/annotations.proto\";\r\nimport \"google/protobuf/timestamp.proto\";\r\n...\r\n```\r\nthat is compiled using `gofast`:\r\n`protoc -I/usr/local/include -I. -I /home/u/go/src -I vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --proto_path . --proto_path vendor/ --gofast_out=plugins=grpc:. --goclay_out=:. endpoint/pb/*.proto`\r\n\r\nI'm getting these errors:\r\n```\r\n» go build ./endpoint                                                                                                                        2017-08-16 18:41:50\r\n# listing_api/endpoint/pb\r\nendpoint/pb/product.pb.go:2727: m.SpecialFromDate.Size undefined (type *timestamp.Timestamp has no field or method Size)\r\nendpoint/pb/product.pb.go:2728: m.SpecialFromDate.MarshalTo undefined (type *timestamp.Timestamp has no field or method MarshalTo)\r\nendpoint/pb/product.pb.go:2751: m.SpecialToDate.Size undefined (type *timestamp.Timestamp has no field or method Size)\r\nendpoint/pb/product.pb.go:2752: m.SpecialToDate.MarshalTo undefined (type *timestamp.Timestamp has no field or method MarshalTo)\r\nendpoint/pb/product.pb.go:2814: m.SpecialFromDate.Size undefined (type *timestamp.Timestamp has no field or method Size)\r\nendpoint/pb/product.pb.go:2815: m.SpecialFromDate.MarshalTo undefined (type *timestamp.Timestamp has no field or method MarshalTo)\r\nendpoint/pb/product.pb.go:2834: m.SpecialToDate.Size undefined (type *timestamp.Timestamp has no field or method Size)\r\nendpoint/pb/product.pb.go:2835: m.SpecialToDate.MarshalTo undefined (type *timestamp.Timestamp has no field or method MarshalTo)\r\nendpoint/pb/product.pb.go:2874: m.StartDate.Size undefined (type *timestamp.Timestamp has no field or method Size)\r\nendpoint/pb/product.pb.go:2875: m.StartDate.MarshalTo undefined (type *timestamp.Timestamp has no field or method MarshalTo)\r\nendpoint/pb/product.pb.go:2875: too many errors\r\n```\r\n\r\nin generated file there's import\r\n`import google_protobuf1 \"github.com/golang/protobuf/ptypes/timestamp\"`\r\nIt'll compile if I'd change it to \r\n`import google_protobuf1 \"github.com/gogo/protobuf/types\"`.\r\nI suspect there's a problem w/ my imports. What should I change?"},"comment":{"url":"https://api.github.com/repos/gogo/protobuf/issues/comments/322990206","html_url":"https://github.com/gogo/protobuf/issues/325#issuecomment-322990206","issue_url":"https://api.github.com/repos/gogo/protobuf/issues/325","id":322990206,"user":{"login":"utrack","id":3862920,"avatar_url":"https://avatars1.githubusercontent.com/u/3862920?v=4","gravatar_id":"","url":"https://api.github.com/users/utrack","html_url":"https://github.com/utrack","followers_url":"https://api.github.com/users/utrack/followers","following_url":"https://api.github.com/users/utrack/following{/other_user}","gists_url":"https://api.github.com/users/utrack/gists{/gist_id}","starred_url":"https://api.github.com/users/utrack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utrack/subscriptions","organizations_url":"https://api.github.com/users/utrack/orgs","repos_url":"https://api.github.com/users/utrack/repos","events_url":"https://api.github.com/users/utrack/events{/privacy}","received_events_url":"https://api.github.com/users/utrack/received_events","type":"User","site_admin":false},"created_at":"2017-08-17T07:22:11Z","updated_at":"2017-08-17T07:22:11Z","body":"Thanks, I'll try that.\r\nI've just tried the same command (same imports etc) with gogofast though and got same compilation errors..."}}
{"actor":{"display_login":"utrack"}}