Open factoidforrest opened 1 year ago
Hey @factoidforrest
I tried saving your https://gist.github.com/factoidforrest/95ded881160638dbb024de43dd764b93 into repro_test.go, but cannot run it:
go test -v
# b1547 [b1547.test]
./repro_test.go:14:14: undefined: ParseProto
Can you please provide steps to reproduce that are complete and tested?
Also, I noticed your code is importing github.com/jhump/protoreflect
, which is a third-party parser that is not supported by the Go Protobuf maintainers. Can you reproduce your issue with only the official Go Protobuf packages? If not, you should probably file an issue with github.com/jhump/protoreflect
instead.
Thanks
I am attempting to extend my proto files using a custom option. However, when parsing out the option from the AST using
getUninterpretedOptions
, I get an empty array. Serializing it with .String() does however return what you would expect.And here is the line that is returning an empty array
Here is the full parser code in case more context is needed
https://gist.github.com/factoidforrest/95ded881160638dbb024de43dd764b93
Does anyone have any sample code of parsing and using custom options with this library?