diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2022-05-20 17:40:44 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2022-06-10 22:26:28 +0200 |
commit | f41374e0d4eac546a18a8d0926ec4cfa48a2cbb6 (patch) | |
tree | cdd12072e4afe5230ad2abd124742908120bf04e /tunnel/tools/libwg-go | |
parent | 38526ef9b568d3a41d7d612aa2764a9cd564ce5d (diff) |
tunnel: fix path to protoc and update protobuf
Diffstat (limited to 'tunnel/tools/libwg-go')
-rw-r--r-- | tunnel/tools/libwg-go/Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tunnel/tools/libwg-go/Makefile b/tunnel/tools/libwg-go/Makefile index e27f2e06..23ce61d9 100644 --- a/tunnel/tools/libwg-go/Makefile +++ b/tunnel/tools/libwg-go/Makefile @@ -28,12 +28,9 @@ GO_HASH_darwin-amd64 := 1f5f539ce0baa8b65f196ee219abf73a7d9cf558ba9128cc0fe4833d GO_HASH_darwin-arm64 := 6c7df9a2405f09aa9bab55c93c9c4ce41d3e58127d626bc1825ba5d0a0045d5c GO_HASH_linux-amd64 := e54bec97a1a5d230fc2f9ad0880fcbabb5888f30ed9666eca4a91c5a32e86cbc -PROTOC_VERSION := 3.19.1 -PROTOC_PLATFORM := $(shell uname -s | tr '[:upper:]' '[:lower:]')-$(shell uname -m) -PROTOC_HASH_linux-x86_64 := d231c807be82ffc29b02525c8c2691772eb945bc -PROTOC_HASH := $(PROTOC_HASH_$(PROTOC_PLATFORM)) +PROTOC_VERSION := 3.20.1 PROTOC_GEN_GO := $(GOPATH)/bin/protoc-gen-go -PROTOC := $(GRADLE_USER_HOME)/caches/modules-2/files-2.1/com.google.protobuf/protoc/$(PROTOC_VERSION)/$(PROTOC_HASH)/protoc-$(PROTOC_VERSION)-$(PROTOC_PLATFORM).exe +PROTOC := $(GRADLE_USER_HOME)/caches/protoc-$(PROTOC_VERSION)/protoc PROTODIR = $(CURDIR)/../../src/main/proto PROTO_INCLUDEDIR = $(CURDIR)/../../build/extracted-include-protos/debug PBDIR = $(GOPATH)/pkg/mod @@ -60,8 +57,8 @@ $(PROTOC_GEN_GO): export GOARCH := $(PROTOC_GEN_GO): export GOOS := $(PROTOC_GEN_GO): export PATH := $(BUILDDIR)/go-$(GO_VERSION)/bin/:$(PATH) $(PROTOC_GEN_GO): $(BUILDDIR)/go-$(GO_VERSION)/.prepared Makefile - go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26 - go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1 + go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 + go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2 gen/%.pb.go: export PATH := $(GOPATH)/bin:$(PATH) gen/%.pb.go: $(PROTODIR)/%.proto $(BUILDDIR)/go-$(GO_VERSION)/.prepared $(PROTOC_GEN_GO) |