gentle-ice-1561
03/20/2023, 11:33 AMerror: failed to run custom build command for `shuttle-proto v0.12.0`
Caused by:
process didn't exit successfully: `/tmp/cargo-installh2AJri/release/build/shuttle-proto-4c1d8faba569ceb5/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-changed=./provisioner.proto
cargo:rerun-if-changed=./runtime.proto
cargo:rerun-if-changed=./
--- stderr
Error: Custom { kind: Other, error: "protoc failed: runtime.proto: This file contains proto3 optional fields, but --experimental_allow_proto3_optional was not set.\n" }
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-shuttle v0.12.0`, intermediate artifacts can be found at `/tmp/cargo-installh2AJri`gentle-ice-1561
03/20/2023, 11:33 AMgentle-agency-53651
03/20/2023, 11:36 AMgentle-agency-53651
03/20/2023, 11:36 AMgentle-ice-1561
03/20/2023, 11:37 AMgentle-agency-53651
03/20/2023, 11:38 AMprotoc installed :/gentle-ice-1561
03/20/2023, 11:38 AMgentle-ice-1561
03/20/2023, 11:39 AMgentle-ice-1561
03/20/2023, 11:41 AM$ protoc --version
libprotoc 3.12.4gentle-agency-53651
03/20/2023, 11:52 AMkind-area-3810
03/20/2023, 12:29 PMapt? We need at least version 3.15, but the latest is 3.22. I've added a not about this to the release notes as well.kind-area-3810
03/20/2023, 12:29 PMgentle-ice-1561
03/20/2023, 12:29 PMgentle-ice-1561
03/20/2023, 12:46 PMgentle-ice-1561
03/20/2023, 12:47 PMgentle-ice-1561
03/20/2023, 12:48 PMkind-area-3810
03/20/2023, 2:05 PMglamorous-kite-40337
03/23/2023, 12:36 AM--- 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.If you're on debian, try `apt-get install protobuf-compiler` or download it from https://github.com/protocolbuffers/protobuf/releasesglamorous-kite-40337
03/23/2023, 12:37 AMglamorous-kite-40337
03/23/2023, 12:49 AMwget https://github.com/protocolbuffers/protobuf/releases/download/v22.2/protoc-22.2-linux-x86_64.zip
or go to https://github.com/protocolbuffers/protobuf/releases/tag/v22.2 then under assets click the file named protoc-22.2-linux-x86_64.zipgentle-ice-1561
03/23/2023, 12:50 AMglamorous-kite-40337
03/23/2023, 12:52 AMglamorous-kite-40337
03/23/2023, 12:52 AMunzip protoc-3.22.2-linux-x86_64.zip
Archive: protoc-3.22.2-linux-x86_64.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of protoc-3.22.2-linux-x86_64.zip or
protoc-3.22.2-linux-x86_64.zip.zip, and cannot find protoc-3.22.2-linux-x86_64.zip.ZIP, period.glamorous-kite-40337
03/23/2023, 12:53 AMgentle-ice-1561
03/23/2023, 12:54 AMglamorous-kite-40337
03/23/2023, 12:54 AMglamorous-kite-40337
03/23/2023, 12:54 AMglamorous-kite-40337
03/23/2023, 12:55 AMglamorous-kite-40337
03/23/2023, 12:55 AMglamorous-kite-40337
03/23/2023, 12:56 AMgentle-ice-1561
03/23/2023, 12:58 AMwget https://github.com/protocolbuffers/protobuf/releases/download/v22.2/protoc-22.2-linux-x86_64.zip, the simplest way IMO.glamorous-kite-40337
03/23/2023, 12:58 AMglamorous-kite-40337
03/23/2023, 12:59 AMglamorous-kite-40337
03/23/2023, 12:59 AMglamorous-kite-40337
03/23/2023, 12:59 AMglamorous-kite-40337
03/23/2023, 12:59 AMgentle-ice-1561
03/23/2023, 12:59 AMglamorous-kite-40337
03/23/2023, 12:59 AMglamorous-kite-40337
03/23/2023, 1:00 AMglamorous-kite-40337
03/23/2023, 1:05 AMglamorous-kite-40337
03/23/2023, 1:05 AMglamorous-kite-40337
03/23/2023, 1:05 AMglamorous-kite-40337
03/23/2023, 1:06 AMglamorous-kite-40337
03/23/2023, 1:06 AMglamorous-kite-40337
03/23/2023, 1:07 AMprotoc-22.2-linux-x86_64.zipglamorous-kite-40337
03/23/2023, 1:07 AMglamorous-kite-40337
03/23/2023, 1:08 AMgentle-ice-1561
03/23/2023, 1:08 AMglamorous-kite-40337
03/23/2023, 1:08 AMglamorous-kite-40337
03/23/2023, 1:13 AM$ cat protoc-3.22.2-linux-x86_64.zip
Not Found
Turns out it's just the error message not the content I was aftergentle-ice-1561
03/23/2023, 1:16 AMcat on a zip file...
Anyways, seems like it might have ended up in the wrong directory?glamorous-kite-40337
03/23/2023, 1:17 AMgentle-ice-1561
03/23/2023, 1:18 AMglamorous-kite-40337
03/23/2023, 1:19 AMglamorous-kite-40337
03/23/2023, 1:19 AMglamorous-kite-40337
03/23/2023, 1:19 AMglamorous-kite-40337
03/23/2023, 1:19 AMgentle-ice-1561
03/23/2023, 1:20 AMglamorous-kite-40337
03/23/2023, 1:20 AMglamorous-kite-40337
03/23/2023, 1:20 AMglamorous-kite-40337
03/23/2023, 1:20 AMglamorous-kite-40337
03/23/2023, 1:20 AMgentle-ice-1561
03/23/2023, 1:38 AMprotoc isn't found, with a less misleading message.glamorous-kite-40337
03/23/2023, 2:09 AMcargo install cargo-shuttlegentle-ice-1561
03/23/2023, 2:10 AMprotocglamorous-kite-40337
03/23/2023, 2:10 AMglamorous-kite-40337
03/23/2023, 2:10 AMglamorous-kite-40337
03/23/2023, 2:11 AMglamorous-kite-40337
03/23/2023, 2:11 AMglamorous-kite-40337
03/23/2023, 2:12 AMglamorous-kite-40337
03/23/2023, 2:12 AMglamorous-kite-40337
03/23/2023, 2:13 AMglamorous-kite-40337
03/23/2023, 2:13 AMglamorous-kite-40337
03/23/2023, 5:33 AMglamorous-kite-40337
03/23/2023, 5:33 AMalert-salesclerk-75162
03/24/2023, 3:02 PMerror: failed to run custom build command for `shuttle-proto v0.12.0`
Caused by:
process didn't exit successfully: `C:\Users\u\AppData\Local\Temp\cargo-installq9co5Y\release\build\shuttle-proto-1e88d0d4f21ebeb7\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-changed=./provisioner.proto
cargo:rerun-if-changed=./runtime.proto
cargo:rerun-if-changed=./
--- stderr
Error: Custom { kind: PermissionDenied, error: "failed to invoke protoc (hint: https://docs.rs/prost-build/#sourcing-protoc): (path: \"C:\\\\protoc-22.2-win64\\\\bin\"): Access is denied. (os error 5)" }
warning: build failed, waiting for other jobs to finish...
Anyone knows how to fix it:)alert-salesclerk-75162
03/24/2023, 3:02 PMalert-salesclerk-75162
03/24/2023, 3:02 PMalert-salesclerk-75162
03/24/2023, 3:03 PMgentle-ice-1561
03/24/2023, 3:08 PMalert-salesclerk-75162
03/24/2023, 3:08 PMalert-salesclerk-75162
03/24/2023, 3:08 PMalert-salesclerk-75162
03/24/2023, 3:08 PMalert-salesclerk-75162
03/24/2023, 3:09 PMgentle-ice-1561
03/24/2023, 3:09 PMalert-salesclerk-75162
03/24/2023, 3:09 PMalert-salesclerk-75162
03/24/2023, 3:09 PMalert-salesclerk-75162
03/24/2023, 3:09 PMalert-salesclerk-75162
03/24/2023, 3:16 PMalert-salesclerk-75162
03/24/2023, 3:16 PMalert-salesclerk-75162
03/24/2023, 3:16 PMalert-salesclerk-75162
03/24/2023, 3:45 PMerror: failed to run custom build command for `shuttle-proto v0.12.0`
Caused by:
process didn't exit successfully: `C:\Users\u\AppData\Local\Temp\cargo-installUQSQwG\release\build\shuttle-proto-1e88d0d4f21ebeb7\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-changed=./provisioner.proto
cargo:rerun-if-changed=./runtime.proto
cargo:rerun-if-changed=./
--- stderr
Error: Custom { kind: NotFound, error: "failed to invoke protoc (hint: https://docs.rs/prost-build/#sourcing-protoc): (path: \"C:\\\\protoc-22.2-win64\\\\bin\"): The system cannot find the path specified. (os error 3)" }
warning: build failed, waiting for other jobs to finish...alert-salesclerk-75162
03/24/2023, 3:45 PMgentle-ice-1561
03/24/2023, 3:46 PMalert-salesclerk-75162
03/24/2023, 3:47 PMgentle-ice-1561
03/24/2023, 3:47 PMalert-salesclerk-75162
03/24/2023, 4:05 PMalert-salesclerk-75162
03/24/2023, 4:05 PMalert-salesclerk-75162
03/24/2023, 4:05 PM