Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Manually update protobuf to 3.3.0 #43

Closed
dongsupark opened this issue Dec 19, 2023 · 2 comments
Closed

Manually update protobuf to 3.3.0 #43

dongsupark opened this issue Dec 19, 2023 · 2 comments
Labels
kind/feature A feature request.

Comments

@dongsupark
Copy link
Member

A simple cargo update && cargo build should succeed, but would fail like below:

error[E0425]: cannot find value `VERSION_3_2_0` in crate `protobuf`
  --> update-format-crau/src/generated/update_metadata.rs:26:49
   |
26 | const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0;
   |                                                 ^^^^^^^^^^^^^ help: a constant with a similar name exists: `VERSION_3_3_0`
   |
  ::: .../target/debug/build/protobuf-05b38a490eb0844d/out/version.rs:7:1
   |
7  | pub const VERSION_3_3_0: () = ();
   | --------------------------- similarly named constant `VERSION_3_3_0` defined here

That is probably update_metadata.rs does not match with protobuf 3.3.0.
It is needed to manually regenerate the file.

@dongsupark
Copy link
Member Author

Turns out, we have been using wrong way for generating protobuf.
#58 will fix that.

@dongsupark
Copy link
Member Author

Done, #58

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
kind/feature A feature request.
Projects
None yet
Development

No branches or pull requests

1 participant