remove necessary buf installation

This commit adds buf as a regular dependency and go running it instead
of requiring installing buf to one's own GOBIN.
This commit is contained in:
Moritz Poldrack 2022-04-21 20:23:21 +02:00
parent a92f6abc6e
commit 3023323528
No known key found for this signature in database
GPG key ID: 6A88F42508AB4FC6
4 changed files with 84 additions and 186 deletions

View file

@ -41,14 +41,14 @@ fmt:
clang-format -style="{BasedOnStyle: Google, IndentWidth: 4, AlignConsecutiveDeclarations: true, AlignConsecutiveAssignments: true, ColumnLimit: 0}" -i $(PROTO_SOURCES)
proto-lint:
cd proto/ && buf lint
cd proto/ && go run github.com/bufbuild/buf/cmd/buf lint
compress: build
upx --brute headscale
generate:
rm -rf gen
buf generate proto
go run github.com/bufbuild/buf/cmd/buf generate proto
install-protobuf-plugins:
go install \