Skip to content
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

build(protobuf): Don't install unused test proto #1116

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

caspermeijn
Copy link
Collaborator

@caspermeijn caspermeijn commented Aug 8, 2024

The build script of crate protobuf installs some proto-files for testing in the prefix dir. However the only user is the same build script. Therefore we can skip the install and use the files directly.

Use absolute path instead of canonical path, as protoc on Windows is not able to process canonical paths. This is sort of documented in https://doc.rust-lang.org/std/fs/fn.canonicalize.html

@caspermeijn caspermeijn marked this pull request as draft August 15, 2024 09:14
The build script of crate `protobuf` installs some proto-files for testing in the prefix dir. However the only user is the same build script. Therefore we can skip the install and use the files directly.

Use `absolute` path instead of `canonical` path, as `protoc` on Windows is not able to process `canonical` paths. This is sort of documented in https://doc.rust-lang.org/std/fs/fn.canonicalize.html
@caspermeijn caspermeijn marked this pull request as ready for review August 16, 2024 09:20
@caspermeijn caspermeijn added this pull request to the merge queue Aug 16, 2024
Merged via the queue into tokio-rs:master with commit 258231d Aug 16, 2024
16 checks passed
@caspermeijn caspermeijn deleted the unused_test_proto branch August 16, 2024 09:25
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