Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"struct field xxx_hidden_HasPassed has json tag but is not exported" - go vet doesn't pass code generated with Opaque API #1658

Open
jhbrown-apeiron opened this issue Dec 17, 2024 · 0 comments

Comments

@jhbrown-apeiron
Copy link

What version of protobuf and what language are you using?
Go language: google.golang.org/protobuf v1.36.0

What did you do?
I generated Go code from several proto2 .proto files, using the command line argument --go_opt=default_api_level=API_OPAQUE

I ran go vet.

What did you expect to see?

I expected go vet to have no errors on the generated code.

What did you see instead?

go vet failed, reporting has json tag but is not exported for every hidden field.

Anything else we should know about your project / environment?

❯ go version
go version go1.23.4 darwin/arm64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant