You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
cargo install protoc-gen-prost
Current behavior:
error[E0603]: module `compiler` is private
--> /home/larry/.cargo/registry/src/github.com-1ecc6299db9ec823/protoc-gen-prost-0.2.1/src/lib.rs:13:5
|
13 | compiler::{code_generator_response::File, CodeGeneratorRequest},
| ^^^^^^^^ private module
|
note: the module `compiler` is defined here
--> /home/larry/.cargo/registry/src/github.com-1ecc6299db9ec823/prost-types-0.11.7/src/lib.rs:15:1
|
15 | mod compiler;
| ^^^^^^^^^^^^
error[E0603]: module `compiler` is private
--> /home/larry/.cargo/registry/src/github.com-1ecc6299db9ec823/protoc-gen-prost-0.2.1/src/generator.rs:3:18
|
3 | use prost_types::compiler::{
| ^^^^^^^^ private module
|
note: the module `compiler` is defined here
--> /home/larry/.cargo/registry/src/github.com-1ecc6299db9ec823/prost-types-0.11.7/src/lib.rs:15:1
|
15 | mod compiler;
| ^^^^^^^^^^^^
error[E0603]: module `compiler` is private
--> /home/larry/.cargo/registry/src/github.com-1ecc6299db9ec823/protoc-gen-prost-0.2.1/src/generator/core.rs:2:18
|
2 | use prost_types::compiler::code_generator_response::File;
| ^^^^^^^^ private module
|
note: the module `compiler` is defined here
--> /home/larry/.cargo/registry/src/github.com-1ecc6299db9ec823/prost-types-0.11.7/src/lib.rs:15:1
|
15 | mod compiler;
| ^^^^^^^^^^^^
error[E0603]: module `compiler` is private
--> /home/larry/.cargo/registry/src/github.com-1ecc6299db9ec823/protoc-gen-prost-0.2.1/src/generator/file_descriptor_set.rs:3:18
|
3 | use prost_types::compiler::code_generator_response::File;
| ^^^^^^^^ private module
|
note: the module `compiler` is defined here
--> /home/larry/.cargo/registry/src/github.com-1ecc6299db9ec823/prost-types-0.11.7/src/lib.rs:15:1
|
15 | mod compiler;
| ^^^^^^^^^^^^
error[E0282]: type annotations needed
--> /home/larry/.cargo/registry/src/github.com-1ecc6299db9ec823/protoc-gen-prost-0.2.1/src/generator/core.rs:49:37
|
49 | request.write_to_file(move |buffer| {
| ^^^^^^
50 | buffer.push_str("// @generated\n");
| ------ type must be known at this point
|
help: consider giving this closure parameter an explicit type
|
49 | request.write_to_file(move |buffer: _| {
| +++
Some errors have detailed explanations: E0282, E0603.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `protoc-gen-prost` due to 5 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `protoc-gen-prost v0.2.1`, intermediate artifacts can be found at `/tmp/cargo-installZD0bjX
Expected behavior:
Install successfully.
The text was updated successfully, but these errors were encountered:
Will look into this. In the meantime, use --locked when doing an install to ensure that you're using the exact dependency versions that the package was published against.
This can be reproduced on a fresh Ubuntu machine.
Repro steps
sudo apt update
sudo apt install curl build-essential -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
cargo install protoc-gen-prost
Current behavior:
Expected behavior:
Install successfully.
The text was updated successfully, but these errors were encountered: