diff --git a/buf.gen.yaml b/.buf.gen.yaml similarity index 100% rename from buf.gen.yaml rename to .buf.gen.yaml diff --git a/Makefile b/Makefile index a84f123d..6d79d150 100644 --- a/Makefile +++ b/Makefile @@ -87,8 +87,8 @@ BUF = env GO=$(GO) ./bin/external-tool buf .SUFFIXES: .DELETE_ON_ERROR: -common/pb/rawflow.pb.go common/pb/rawflow_vtproto.pb.go &: buf.gen.yaml common/pb/rawflow.proto ; $(info $(M) compiling protocol buffers $@…) - $Q $(BUF) generate --path $(@:.pb.go=.proto) +common/pb/rawflow.pb.go common/pb/rawflow_vtproto.pb.go &: .buf.gen.yaml common/pb/rawflow.proto ; $(info $(M) compiling protocol buffers $@…) + $Q $(BUF) generate --template $(PWD)/.buf.gen.yaml --path $(@:.pb.go=.proto) common/clickhousedb/mocks/mock_driver.go: go.mod ; $(info $(M) generate mocks for ClickHouse driver…) $Q $(MOCKGEN) -package mocks -build_constraint "!release" -destination $@ \