grpc-swift icon indicating copy to clipboard operation
grpc-swift copied to clipboard

Will precompiled binaries be available via GitHub releases in future?

Open ezzatron opened this issue 9 months ago • 3 comments

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.

ezzatron avatar Feb 11 '25 01:02 ezzatron

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.

adarhef avatar Feb 11 '25 08:02 adarhef

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 avatar Feb 11 '25 10:02 glbrntt

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...

adarhef avatar Feb 11 '25 11:02 adarhef