Fix usage of protoc-gen-go-binary (#15920)

* Fix usage of protoc-gen-go-binary
* Pin protoc-gen-go-binary version
This commit is contained in:
Matt Keeler 2023-01-06 11:30:54 -05:00 committed by GitHub
parent 7b8ccca498
commit 8b4eb0c8c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 31 additions and 22 deletions

View File

@ -13,6 +13,7 @@ BUF_VERSION='v1.4.0'
PROTOC_GEN_GO_GRPC_VERSION="v1.2.0" PROTOC_GEN_GO_GRPC_VERSION="v1.2.0"
MOG_VERSION='v0.3.0' MOG_VERSION='v0.3.0'
PROTOC_GO_INJECT_TAG_VERSION='v1.3.0' PROTOC_GO_INJECT_TAG_VERSION='v1.3.0'
PROTOC_GEN_GO_BINARY_VERSION="v0.1.0"
DEEP_COPY_VERSION='bc3f5aa5735d8a54961580a3a24422c308c831c2' DEEP_COPY_VERSION='bc3f5aa5735d8a54961580a3a24422c308c831c2'
MOCKED_PB_DIRS= pbdns MOCKED_PB_DIRS= pbdns

View File

@ -73,6 +73,8 @@ function proto_tools_install {
mog_version="$(make --no-print-directory print-MOG_VERSION)" mog_version="$(make --no-print-directory print-MOG_VERSION)"
protoc_go_inject_tag_version="$(make --no-print-directory print-PROTOC_GO_INJECT_TAG_VERSION)" protoc_go_inject_tag_version="$(make --no-print-directory print-PROTOC_GO_INJECT_TAG_VERSION)"
buf_version="$(make --no-print-directory print-BUF_VERSION)" buf_version="$(make --no-print-directory print-BUF_VERSION)"
protoc_gen_go_binary_version="$(make --no-print-directory print-PROTOC_GEN_GO_BINARY_VERSION)"
# echo "go: ${protoc_gen_go_version}" # echo "go: ${protoc_gen_go_version}"
# echo "mog: ${mog_version}" # echo "mog: ${mog_version}"
@ -102,9 +104,11 @@ function proto_tools_install {
"${protoc_gen_go_grpc_version}" \ "${protoc_gen_go_grpc_version}" \
'google.golang.org/grpc/cmd/protoc-gen-go-grpc' 'google.golang.org/grpc/cmd/protoc-gen-go-grpc'
install_unversioned_tool \ install_versioned_tool \
protoc-gen-go-binary \ protoc-gen-go-binary \
'github.com/hashicorp/protoc-gen-go-binary@master' 'github.com/hashicorp/protoc-gen-go-binary' \
"${protoc_gen_go_binary_version}" \
'github.com/hashicorp/protoc-gen-go-binary'
install_versioned_tool \ install_versioned_tool \
'protoc-go-inject-tag' \ 'protoc-go-inject-tag' \

View File

@ -4,7 +4,7 @@
package ratelimit package ratelimit
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -20,6 +20,8 @@ plugins:
- require_unimplemented_servers=false - require_unimplemented_servers=false
- name: go-binary - name: go-binary
out: . out: .
opt:
- paths=source_relative
- name: consul-rate-limit - name: consul-rate-limit
out: . out: .
opt: opt:

View File

@ -4,7 +4,7 @@
package pbacl package pbacl
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbconnectca package pbconnectca
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbdataplane package pbdataplane
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbdns package pbdns
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbserverdiscovery package pbserverdiscovery
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -21,6 +21,8 @@ plugins:
- require_unimplemented_servers=false - require_unimplemented_servers=false
- name: go-binary - name: go-binary
out: . out: .
opt:
- paths=source_relative
- name: consul-rate-limit - name: consul-rate-limit
out: . out: .
opt: opt:

View File

@ -4,7 +4,7 @@
package pbacl package pbacl
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbautoconf package pbautoconf
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbcommon package pbcommon
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbconfig package pbconfig
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbconfigentry package pbconfigentry
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbconnect package pbconnect
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pboperator package pboperator
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbpeering package pbpeering
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbpeerstream package pbpeerstream
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbservice package pbservice
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbservice package pbservice
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbservice package pbservice
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbstatus package pbstatus
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler

View File

@ -4,7 +4,7 @@
package pbsubscribe package pbsubscribe
import ( import (
"github.com/golang/protobuf/proto" "google.golang.org/protobuf/proto"
) )
// MarshalBinary implements encoding.BinaryMarshaler // MarshalBinary implements encoding.BinaryMarshaler