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 error #217

Open
GameOverStudios opened this issue Sep 22, 2024 · 2 comments
Open

Build error #217

GameOverStudios opened this issue Sep 22, 2024 · 2 comments

Comments

@GameOverStudios
Copy link

hi, i trying build and i receive this error...

error: failed to run custom build command for nostr-rs-relay v0.8.13 (/workspaces/nostr-rs-relay)

Caused by:
process didn't exit successfully: /workspaces/nostr-rs-relay/target/release/build/nostr-rs-relay-026f953f295ab1c6/build-script-build (exit status: 1)
--- stdout
cargo:rerun-if-changed=proto/nauthz.proto
cargo:rerun-if-changed=proto

--- stderr
Error: Custom { kind: Other, error: "protoc failed: Unknown flag: --experimental_allow_proto3_optional\n" }

i change comments this line --experimental_allow_proto3_optiona and receive error again..

why?

@CirKu17
Copy link

CirKu17 commented Oct 10, 2024

Same error here on 0.9.0, related issue: #74 .
However in my case installing the protobuf + protobuf-compiler packages didn't work.

@scsibug
Copy link
Owner

scsibug commented Oct 19, 2024

What version of protoc do you have (protoc --version), and how did you install it? I believe you need at v3.12, which is when the compiler began supporting optional fields as an experiemental option. That was released May 2020, so it should be in all the latest package manager distributions.

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

No branches or pull requests

3 participants