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"
MOG_VERSION='v0.3.0'
PROTOC_GO_INJECT_TAG_VERSION='v1.3.0'
PROTOC_GEN_GO_BINARY_VERSION="v0.1.0"
DEEP_COPY_VERSION='bc3f5aa5735d8a54961580a3a24422c308c831c2'
MOCKED_PB_DIRS= pbdns

View File

@ -73,6 +73,8 @@ function proto_tools_install {
mog_version="$(make --no-print-directory print-MOG_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)"
protoc_gen_go_binary_version="$(make --no-print-directory print-PROTOC_GEN_GO_BINARY_VERSION)"
# echo "go: ${protoc_gen_go_version}"
# echo "mog: ${mog_version}"
@ -102,9 +104,11 @@ function proto_tools_install {
"${protoc_gen_go_grpc_version}" \
'google.golang.org/grpc/cmd/protoc-gen-go-grpc'
install_unversioned_tool \
install_versioned_tool \
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 \
'protoc-go-inject-tag' \

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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