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

Always include the 'SwiftProtobuf' import in generated code #16

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Dec 3, 2024

Motivation:

The 'SwiftProtobuf' import was missing from generated code.

Modifications:

  • Always generate an import for 'SwiftProtobuf'

Result:

Import are more correct

Motivation:

The 'SwiftProtobuf' import was missing from generated code.

Modifications:

- Always generate an import for 'SwiftProtobuf'

Result:

Import are more correct
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Dec 3, 2024
@glbrntt glbrntt enabled auto-merge (squash) December 3, 2024 15:19
@glbrntt glbrntt merged commit 4587c27 into grpc:main Dec 3, 2024
29 checks passed
@glbrntt glbrntt deleted the always-import-protobuf branch December 3, 2024 16:51
glbrntt added a commit to glbrntt/grpc-swift-protobuf that referenced this pull request Dec 4, 2024
Motivation:

In (grpc#16) an import for SwiftProtobuf was added to account for well-known
types. However, if no well-known types are used then warnings are
emitted when the access level is included on the import.

Modifications:

- Only generate the SwiftProtobuf import for well-known types

Result:

Fewer warnings
glbrntt added a commit that referenced this pull request Dec 5, 2024
Motivation:

In (#16) an import for SwiftProtobuf was added to account for well-known
types. However, if no well-known types are used then warnings are
emitted when the access level is included on the import.

Modifications:

- Only generate the SwiftProtobuf import for well-known types

Result:

Fewer warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants