diff options
| author | Jeff Carr <[email protected]> | 2025-10-09 01:03:10 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-09 01:03:10 -0500 |
| commit | b7ebd1bc4104df39062ddf264cf439fcdcac3881 (patch) | |
| tree | 999aacc89e9c517b8062ccd6bf2c5538d97e6ebc | |
| parent | 9302d70634c4625e5262c4c1dd6d10fed83f71b3 (diff) | |
common protobuf makefilev0.0.15
| -rw-r--r-- | Makefile | 27 |
1 files changed, 17 insertions, 10 deletions
@@ -1,4 +1,16 @@ -all: generate vet +all: config.pb.go goimports vet + @echo This GO code passes the compile checks + +# fixes your numbers if you move things around +# THIS TOTALLY BREAKS THE POINT OF PROTOBUF +# To work around that breaking, you must change the version +# also, all the wrapping code must support this. which it doesn't +proto-renumber: clean + autogenpb --renumber --proto config.proto + make goimports vet + +config.pb.go: config.proto + make generate generate: clean go mod init @@ -8,18 +20,13 @@ generate: clean go-generate: rm -f *.pb.go *.patch -vet: - @GO111MODULE=off go vet - @echo this go library package builds okay - -# autofixes your import headers in your golang files goimports: goimports -w *.go +vet: + @GO111MODULE=off go vet + clean: rm -f *.pb.go *.patch -rm -f go.* - -go-mod-clean purge - -config.pb.go: config.proto - autogenpb --proto config.proto + go-mod-clean purge |
