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

Protobuf build error #77

Closed
yuvadm opened this issue Feb 14, 2023 · 1 comment
Closed

Protobuf build error #77

yuvadm opened this issue Feb 14, 2023 · 1 comment

Comments

@yuvadm
Copy link
Contributor

yuvadm commented Feb 14, 2023

Receiving the following error when building latest on Ubuntu 22.04 -

error: failed to run custom build command for `nostr-rs-relay v0.8.4 (/home/ubuntu/nostr-rs-relay)`

Caused by:
  process didn't exit successfully: `/home/ubuntu/nostr-rs-relay/target/debug/build/nostr-rs-relay-5addfc5e2f7e03c4/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: nauthz.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...
@scsibug
Copy link
Owner

scsibug commented Feb 14, 2023

Unfortunately with how things are setup right now, you need a fairly recent version of protobuf-compiler. I need to check if removing the optional annotations breaks anything, that may let us use older versions.

yuvadm added a commit to yuvadm/nostr-rs-relay that referenced this issue Feb 14, 2023
RandyMcMillan pushed a commit to gnostr-org/gnostr-relay that referenced this issue Jul 16, 2023
Add --experimental_allow_proto3_optional protoc arg in build configs

fixes scsibug#77
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

2 participants