From 86f0bea18d524b474517a8f9387487c2f913dd48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20I=C3=B1iguez=20Goia?= Date: Wed, 3 Jul 2024 14:41:31 +0200 Subject: [PATCH] updated workflow compilation deps google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.2 generates protobuffers incompatible with go1.17, it fails with the error: "ui/protocol/ui.pb.go:2716:47: predeclared any requires go1.18 or later (-lang was set to go1.17; check go.mod)" Notes: - consider using go1.18 as min required version if there's no problem compiling the daemon on Debian <= 13 and other distros. - github.com/golang/protobuf is deprecated and we should get rid of it. --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index aeff5782..307b9d30 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -32,7 +32,7 @@ jobs: export GOPATH=~/go export PATH=$PATH:$GOPATH/bin go install github.com/golang/protobuf/protoc-gen-go@latest - go install google.golang.org/protobuf/cmd/protoc-gen-go@latest + go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.1 go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0 cd proto make ../daemon/ui/protocol/ui.pb.go