Open 0x-shanks opened 3 years ago
Thanks for the report. I can't reproduce that on my local Mac Book.
Did you run protoc
after updating the .proto?
roche is internally looking at the pb.go structure.
Or are you not using the latest version of roche?
I'm sorry, I didn't run the roche protoc
command, I forgot it wasn't in the readme!
I just don't get an error message when I run the roche protoc
, so I'll have to make that an issue.
The current roche protoc has the following problems. https://github.com/izumin5210/grapi/issues/130 Therefore, it is not described in the readme.
Strictly speaking, tools.go
has the potential ability to solve the problem.
I think we've talked about this issue before.
In my environment, when I used grapi v0.5.0, I got an error, but the grapi that roche depends on is a later version, right?
Example of error output of grapi v0.5.0
➜ Execute protoc
▸ Install plugins
▸ Execute protoc
✗ api/protos/user.proto
failed to execute command: [protoc -I api/protos -I ./api/protos -I /workspace/github.com/grpc-ecosystem/grpc-gateway@v1.16.0 -I /workspace/go/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@v1.16.0/third_party/googleapis --grpc-gateway_out=logtostderr=true,paths=source_relative:api api/protos/user.proto]
--grpc-gateway_out: no field "id" found in UpdateUserRequest
: exit status 1
roche protoc
➜ Execute protoc
▸ Install plugins
▸ Execute protoc
✔ api/protos/user.proto
Describe the bug Running
roche scaffold domain NAME
after editing a Proto file creates a domain object with fields that are not the edited ones.for example user.proto
but
domain/entity/user.go
Expected behavior domain/entity/user.go