From 62019f974334333572eb0238c93859e5e729b06c Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Wed, 23 Oct 2019 18:31:11 +0200 Subject: Fix protoc-gen-gitaly in 1-65-stable --- Makefile | 1 + _support/Makefile.template | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a36b2d2b7..14cfce290 100644 --- a/Makefile +++ b/Makefile @@ -124,4 +124,5 @@ _build/makegen: _support/makegen.go $(BUILD_DIR)/go.mod cd $(BUILD_DIR) && go build -o $(CURDIR)/$@ $(SOURCE_DIR)/_support/makegen.go clean: + rm -rf $(BUILD_DIR) git clean -fdX diff --git a/_support/Makefile.template b/_support/Makefile.template index 986d8338f..45f6b640f 100644 --- a/_support/Makefile.template +++ b/_support/Makefile.template @@ -271,8 +271,8 @@ proto: {{ .ProtoC }} {{ .ProtoCGenGo }} {{ .ProtoCGenGitaly }} {{ .GrpcToolsRuby go get github.com/golang/protobuf/protoc-gen-go@v1.3.2 {{ .ProtoCGenGitaly }}: - # Todo fix protoc-gen-gitaly versioning - go install gitlab.com/gitlab-org/gitaly-proto/go/internal/cmd/protoc-gen-gitaly + git clone --quiet -b v1.39.0 https://gitlab.com/gitlab-org/gitaly-proto.git {{ .BuildDir }}/gitaly-proto + cd {{ .BuildDir }}/gitaly-proto/go/internal/cmd/protoc-gen-gitaly && go build -o $@ {{ .GrpcToolsRuby }}: gem install --bindir {{ .BuildDir }}/bin -v 1.0.1 grpc-tools -- cgit v1.2.3