Skip to content

build(protobuf): Use same protoc from same repo as .proto-files - #1136

Merged
caspermeijn merged 1 commit into
tokio-rs:masterfrom
caspermeijn:protoc_from_repo
Sep 4, 2024
Merged

build(protobuf): Use same protoc from same repo as .proto-files#1136
caspermeijn merged 1 commit into
tokio-rs:masterfrom
caspermeijn:protoc_from_repo

Conversation

@caspermeijn

Copy link
Copy Markdown
Member

Crate protobuf compiles some .proto-files from the checked out repo in third_party/protobuf. Those files can use newest features from protoc. Therefore during development the protoc in PATH must be the same version or newer than in third_party/protobuf.

The crate already builds a protoc compiler from the checked out repo to be used in conformance executable. Use that specific protoc for compiling the .proto-files in the crate.

This doesn't influence the protoc used in crate tests nor published crates.

@caspermeijn
caspermeijn marked this pull request as draft August 23, 2024 09:07
Crate `protobuf` compiles some .proto-files from the checked out repo in `third_party/protobuf`. Those files can use newest features from `protoc`. Therefore during development the `protoc` in `PATH` must be the same version or newer than in `third_party/protobuf`.

The crate already builds a `protoc` compiler from the checked out repo to be used in conformance executable. Use that specific `protoc` for compiling the .proto-files in the crate.

This doesn't influence the `protoc` used in crate `tests` nor published crates.
@caspermeijn
caspermeijn marked this pull request as ready for review September 4, 2024 11:12
@caspermeijn
caspermeijn added this pull request to the merge queue Sep 4, 2024
Merged via the queue into tokio-rs:master with commit ef8c040 Sep 4, 2024
@caspermeijn
caspermeijn deleted the protoc_from_repo branch September 4, 2024 14:51
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.

1 participant