From 0fc7c2d753bc6cfdc4d64425da1a23c3735b8409 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 27 Nov 2024 21:05:12 -0600 Subject: boo. big mistake on naming protobufs It's important to really choose good names from the start. do not think you can rename .proto files later Good software engineering practices enforced here! no bullshit. you really want to know what you are planning. --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9a32973..202004e 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # go install -all: repo.pb.go +all: repo.pb.go forgeConfig.pb.go make -C forgeConfig vet: lint @@ -34,3 +34,9 @@ repo.pb.go: repo.proto cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/lib/protobuf/forgepb \ --go_opt=Mrepo.proto=go.wit.com/lib/protobuf/forgepb \ repo.proto + +forgeConfig.pb.go: forgeConfig.proto + # I'm using version v1.35.x from google.golang.org/protobuf/cmd/protoc-gen-go + cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/lib/protobuf/forgepb \ + --go_opt=MforgeConfig.proto=go.wit.com/lib/protobuf/forgepb \ + forgeConfig.proto -- cgit v1.2.3