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

Bundled protoc only if the interpreter exists #459

Merged
merged 2 commits into from Jul 6, 2021

Conversation

nagisa
Copy link
Contributor

@nagisa nagisa commented Apr 12, 2021

Otherwise on systems such as NixOS the prost-build attempts to execute
the bundled protoc, hits a very obscure error about file not existing
and exits, without trying the other options (such as the protoc from
path, if it exists there).

This also happens to cover the musl case, which has its interpreters as
/lib/ld-musl-... instead, as well as various instances where glibc might
want to bump the so version for its interpreter (has recently happened in
the past for x86_64 IIRC).

nagisa and others added 2 commits April 12, 2021 19:16
Otherwise on systems such as NixOS the prost-build attempts to execute
the bundled protoc, hits a very obscure error about file not existing
and exits, without trying the other options (such as the protoc from
path, if it exists there).
Copy link
Member

@LucioFranco LucioFranco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay on this! Thanks!

@LucioFranco LucioFranco merged commit 5d93c55 into tokio-rs:master Jul 6, 2021
@nagisa nagisa deleted the nagisa/check-interp branch July 6, 2021 16:54
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.

None yet

2 participants