Skip to content

Consider including protoc source in release artifacts #1930

@mnm364

Description

@mnm364

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 release

The 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 release

This 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions