diff options
| -rw-r--r-- | Makefile | 28 | ||||
| -rw-r--r-- | generate.go (renamed from generate.off) | 0 |
2 files changed, 16 insertions, 12 deletions
@@ -1,4 +1,16 @@ -all: goimports vet +all: chat.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 chat.proto + make goimports vet + +chat.pb.go: chat.proto + make generate generate: clean go mod init @@ -8,21 +20,13 @@ generate: clean go-generate: rm -f *.pb.go *.patch -# all: clean chat.pb.go book.pb.go goimports vet - goimports: goimports -w *.go -chat.pb.go: chat.proto - autogenpb --proto chat.proto - -book.pb.go: book.proto - autogenpb --proto book.proto +vet: + @GO111MODULE=off go vet clean: rm -f *.pb.go *.patch -rm -f go.* - -vet: - @GO111MODULE=off go vet - @echo this go library package builds okay + go-mod-clean purge diff --git a/generate.off b/generate.go index fe9787a..fe9787a 100644 --- a/generate.off +++ b/generate.go |
