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

Remove v2 code from v1 #2110

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Remove v2 code from v1 #2110

merged 2 commits into from
Nov 8, 2024

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Nov 8, 2024

Motivation:

There's a bug in SwiftPM which prohibits the Xcode build system from being used if a dependency explicitly declares which Swift language mode is being used, regardless of its value. A number of users are running into this problem, and while it's not a gRPC Swift bug we can work around the issue by removing the v2 code from the v1 branch and removing the Swift 6 specific manifest.

Modifications:

  • Remove all v2 code
  • Remove workarounds in the SwiftPM build plugin which avoid deprecation warnings. It turns out that the guard was incorrect anyway: the API isn't guarded by the compiler version, but the package tools version.

Result:

Possible to build v1 with SwiftPM using the Xcode build system.

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Nov 8, 2024
Motivation:

There's a bug in SwiftPM which prohibits the Xcode build system from
being used if a dependency explicitly declares which Swift language mode
is being used, regardless of its value. A number of users are running
into this problem, and while it's not a gRPC Swift bug we can work
around the issue by removing the v2 code from the v1 branch and removing
the Swift 6 specific manifest.

Modifications:

- Remove all v2 code
- Remove workarounds in the SwiftPM build plugin which avoid deprecation
  warnings. It turns out that the guard was incorrect anyway: the API
  isn't guarded by the compiler version, but the package tools version.

Result:

Possible to build v1 with SwiftPM using the Xcode build system.
Copy link
Collaborator

@rnro rnro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reading every line of this diff, I approve

@rnro
Copy link
Collaborator

rnro commented Nov 8, 2024

I did look over all the modified files and the classes of deleted files and it all looks sensible to me.

@glbrntt glbrntt merged commit 0329ecc into grpc:release/1.x Nov 8, 2024
14 checks passed
@glbrntt glbrntt deleted the v1/remove-v2 branch November 8, 2024 14:43
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