Skip to content

Will precompiled binaries be available via GitHub releases in future? #2193

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

Open
ezzatron opened this issue Feb 11, 2025 · 3 comments
Open
Labels
status/triage Collecting information required to triage the issue.

Comments

@ezzatron
Copy link

What are you trying to achieve?

For previous releases of grpc-swift (e.g. 1.24.2), precompiled versions of the protoc-gen-swift and protoc-gen-grpc-swift binaries were made available as release assets:

Image

In the latest releases, these precompiled binaries are notably absent:

Image

Just wondering if this is an oversight, or if support for these precompiled binaries was intentionally discontinued. Is there some other way to obtain precompiled binaries for the latest version?

What have you tried so far?

Reading release notes and documentation for mention of this decision.

@adarhef
Copy link

adarhef commented Feb 11, 2025

Have been wondering the same thing.
I'm personally using Tuist for Xcode project generation, and also using their dependency handling mechanism which doesn't support SPM Plugins.
So without the precompiled binary I can't generate code for my gRPC services.

@glbrntt
Copy link
Collaborator

glbrntt commented Feb 11, 2025

I'm not familiar with Tuist; presumably it allows you to depend on a Swift package and therefore build protoc-gen-grpc-swift?

It looks it supports running scripts as part of the build so you should be able to write a shell script which builds the plugins and generates the gRPC and Protobuf code for you. There's an example script here.

@glbrntt glbrntt added the status/triage Collecting information required to triage the issue. label Feb 11, 2025
@adarhef
Copy link

adarhef commented Feb 11, 2025

I'm not familiar with Tuist; presumably it allows you to depend on a Swift package and therefore build protoc-gen-grpc-swift?

It looks it supports running scripts as part of the build so you should be able to write a shell script which builds the plugins and generates the gRPC and Protobuf code for you. There's an example script here.

That's actually what I ended up doing since writing that comment :)

I realized the plugins were moved into their own repository at https://github.com/grpc/grpc-swift-protobuf.

It just seems a little annoying to have to build the plugins myself. I think it'd make sense for them to be included as artifacts in the grpc-swift-protobuf repo. That's kind of what GitHub Releases are for, and I think since the artifacts used to be included in previous versions grpc-swift then the maintainers at least used to agree...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage Collecting information required to triage the issue.
Projects
None yet
Development

No branches or pull requests

3 participants