diff options
| author | Jeff Carr <[email protected]> | 2024-12-01 18:18:11 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-01 18:18:11 -0600 |
| commit | e4b150d6aae34ec3f4688c09711d0bfe2bcf4b41 (patch) | |
| tree | c8283b4e2dc0a35e199343ef13f58abe77cb834f /Makefile | |
| parent | a4f3f951962b2db0bb21c22c10ef60d1d57a3b5c (diff) | |
switch to autogenpbv0.0.11
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 |
1 files changed, 6 insertions, 18 deletions
@@ -5,19 +5,16 @@ # go install -all: package.pb.go machine.pb.go - make -C example +all: package.pb.go machine.pb.go vet -vet: lint +vet: + @GO111MODULE=off go vet + @echo this go library package builds okay GO111MODULE=off go vet -lint: - -buf lint git.proto - # autofixes your import headers in your golang files goimports: goimports -w *.go - make -C example goimports redomod: rm -f go.* @@ -27,18 +24,9 @@ redomod: clean: rm -f *.pb.go -rm -f go.* - make -C example clean package.pb.go: package.proto - # protoc --go_out=. droplet.proto - # This is switched over to use the new protoc-gen-go from google.golang.org/protobuf/cmd/protoc-gen-go - # the debian one (2024/10/21) seems to be the older/original one from github.com/golang/protobuf/protoc-gen-go - cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/lib/protobuf/zoopb \ - --go_opt=Mpackage.proto=go.wit.com/lib/protobuf/zoopb \ - package.proto + autogenpb --proto package.proto --mutex machine.pb.go: machine.proto - cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/lib/protobuf/zoopb \ - --go_opt=Mpackage.proto=go.wit.com/lib/protobuf/zoopb \ - --go_opt=Mmachine.proto=go.wit.com/lib/protobuf/zoopb \ - machine.proto + autogenpb --proto machine.proto --mutex |
