protoc-gen-gorm
protoc-gen-gorm copied to clipboard
Protoc is not generating any gorm files
Hello, I have a problem, that I can't see any generated code in my project directory after running (in Makefile):
protos:
@protoc \
-I /usr/local/include \
-I ${GOPATH}/src \
--go_out=${GOPATH}/src \
--gorm_out=${GOPATH}/src \
--proto_path=. \
database.proto
What is the problem source?
Difficult to say. As long as database.proto contain at least one proto object with the option (gorm.opts).ormable = true
, I'd be inclined to expect that it is generating a file, however it could be outputting it somewhere unexpected. Do you also have a defined option go_package=...
in database.proto?
same issue. has set:
--gorm_out=internal/proto
and
option go_package = ".;proto";
noting generated.
same thing here... gorm files are not generated. using golang version 1.15.