-
Notifications
You must be signed in to change notification settings - Fork 519
Consider including protoc source in release artifacts #1930
Description
Since #1876 (released in 1.33.0), building swift-protobuf also builds protoc. In development, git submodules are used to get the protoc source; however, the release artifacts (at https://github.com/apple/swift-protobuf/releases) do not include this protoc source. This means that swift-protobuf cannot actually be built from the release artifacts. For example, the following fails:
curl -L https://github.com/apple/swift-protobuf/archive/refs/tags/1.33.3.tar.gz | tar -xz
cd swift-protobuf-1.33.3
swift build -c releaseThe alternative is to use git-tooling, such as
git clone https://github.com/apple/swift-protobuf.git
git checkout tags/[tag_name]
git submodule init
git submodule update
swift build -c releaseThis makes it difficult to utilize the source releases for development tooling or CI at all as the binary cannot be built from them! Alternatively or in addition, releasing binary artifacts as in #1197 would also help alleviate this pain point.
Could we consider including the protoc source in the release artifact?
Thanks so much for your time!
cc @FranzBusch