Skip to content

Compile fails with tonic 0.8 #1047

Closed
Closed
@akiradeveloper

Description

Bug Report

Version

0.8

Platform

5.4.0-104-generic #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Crates

Description

After upgrading from 0.7 to 0.8, build started to fail with this message.

  --- stdout
  cargo:rerun-if-changed=proto/reflection.proto
  cargo:rerun-if-changed=proto/

  --- stderr
  thread 'main' panicked at '
  Could not find `protoc` installation and this build crate cannot proceed without
  this knowledge. If `protoc` is installed and this crate had trouble finding
  it, you can set the `PROTOC` environment variable with the specific path to your
  installed `protoc` binary.

This seems to me the change #1021 makes it require protoc for some reason.

Because my project was ok with tonic 0.7, this is kind of a bug.

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