Skip to content

Commit

Permalink
encoding/protobuf: fix required option parsing
Browse files Browse the repository at this point in the history
Fixes #351

Change-Id: Iaa14fee036764c7a51116483ea51897c0ef87efd
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/5700
Reviewed-by: Marcel van Lohuizen <[email protected]>
  • Loading branch information
vvakame authored and mpvl committed Apr 20, 2020
1 parent 904f561 commit 9b62b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoding/protobuf/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ func (p *optionParser) parse(options []*proto.Option) {
// - interpret CUE options.
for _, o := range options {
switch o.Name {
case "(cue_opt).required":
case "(cue.opt).required":
p.required = true
// TODO: Dropping comments. Maybe add a dummy tag?

Expand Down

0 comments on commit 9b62b36

Please sign in to comment.