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

feat: Use GRPC from swift package manager #1418

Closed
wants to merge 2 commits into from

Conversation

AttilaTheFun
Copy link
Contributor

@AttilaTheFun AttilaTheFun commented Dec 25, 2024

This PR updates the GRPC examples to use the GRPC obtained through RSPM instead of the one in rules_swift.
I was unable to land this previously because tests were failing on ubuntu without the alwayslink = True flag.
RSPM now sets this flag so it should work as expected.

@AttilaTheFun
Copy link
Contributor Author

@cgrindel I think this is ready to go, and the Stripe test failure is unrelated to this PR.

@cgrindel
Copy link
Owner

I already moved these examples to swift_gazelle_plugin. Can we apply this PR over there?

@AttilaTheFun
Copy link
Contributor Author

Oh ok — I wasn’t sure if it was ready to use. When will it be published on the Bazel registry?

@cgrindel
Copy link
Owner

I am working on it, right now. 🙂

@AttilaTheFun
Copy link
Contributor Author

@cgrindel Ok I ported the PR over to the new repo here: cgrindel/swift_gazelle_plugin#7

cgrindel pushed a commit to cgrindel/swift_gazelle_plugin that referenced this pull request Dec 27, 2024
This PR is a port of this PR into RSPM:
cgrindel/rules_swift_package_manager#1418

Last year I added support for generating swift_proto_library targets to
the Gazelle plugin.
I added these examples demonstrating the Gazelle plugin in action, but
they were limited to the GRPC and SwiftProtobuf versions supplied by
rules_swift.

At the time, RSPM was not setting alwayslink = True on the generated
swift_library targets which caused the tests to fail on Ubuntu. Since
then, this issue has been resolved and the Gazelle plugin has been
extracted to this separate repository.

I have ported over my changes to use GRPC and its dependencies from
Swift Package Manager. This enables consumers to independently upgrade
these dependencies and avoid duplicate symbols with other libraries that
also depend on these packages.
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 this pull request may close these issues.

2 participants