File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 44
55require (
66 github.com/Masterminds/sprig v2.22.0+incompatible
7- google.golang.org/protobuf v1.27 .1
7+ google.golang.org/protobuf v1.28 .1
88)
99
1010require (
Original file line number Diff line number Diff line change @@ -24,5 +24,7 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T
2424google.golang.org/protobuf v1.26.0-rc.1 /go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw =
2525google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ =
2626google.golang.org/protobuf v1.27.1 /go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc =
27+ google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w =
28+ google.golang.org/protobuf v1.28.1 /go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I =
2729gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
2830gopkg.in/yaml.v2 v2.3.0 /go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI =
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import (
1515 "github.com/Masterminds/sprig"
1616 "google.golang.org/protobuf/compiler/protogen"
1717 "google.golang.org/protobuf/reflect/protoreflect"
18+ "google.golang.org/protobuf/types/pluginpb"
1819)
1920
2021func main () {
@@ -27,6 +28,7 @@ func main() {
2728 ParamFunc : flags .Set ,
2829 }
2930 opts .Run (func (gen * protogen.Plugin ) error {
31+ gen .SupportedFeatures = uint64 (pluginpb .CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL )
3032 genOpts := GenOpts {
3133 Format : * format ,
3234 TemplateDir : * templates ,
You can’t perform that action at this time.
0 commit comments