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

[swift_proto_library] Generated types are always public #961

Open
tylervick opened this issue Jan 3, 2023 · 1 comment · May be fixed by #962
Open

[swift_proto_library] Generated types are always public #961

tylervick opened this issue Jan 3, 2023 · 1 comment · May be fixed by #962

Comments

@tylervick
Copy link

Currently the Visibility generation option is hardcoded to Public for all protobuf generation:

protoc_args.add("--swift_opt=Visibility=Public")

Certain use cases require a non-public access level for generated objects. For example, when creating a library without exposing messages to the consumer.

@thomasvl
Copy link
Member

thomasvl commented Jan 4, 2023

This is because each swift_proto_library ends up being a module. If it was anything other than public how would it be used?

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

Successfully merging a pull request may close this issue.

2 participants