protoc-gen-gorm icon indicating copy to clipboard operation
protoc-gen-gorm copied to clipboard

Protoc is not generating any gorm files

Open matisiekpl opened this issue 6 years ago • 3 comments

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?

matisiekpl avatar Feb 09 '19 20:02 matisiekpl

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?

Calebjh avatar Feb 14 '19 01:02 Calebjh

same issue. has set:

--gorm_out=internal/proto

and

option go_package = ".;proto";

noting generated.

suutaku avatar Mar 01 '21 10:03 suutaku

same thing here... gorm files are not generated. using golang version 1.15.

swarupdonepudi avatar Apr 07 '21 21:04 swarupdonepudi