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
prost version upgrade brakes core build scripts #2848
Comments
Thanks for calling this out @divagant-martian! I updated the release notes: https://github.com/libp2p/rust-libp2p/releases/tag/v0.47.0 Do you think we should also adjust the changelogs? If so, would you mind preparing a pull request? |
I was about to add the entry to the changelogs in the appropriate versions (those belonging to the 0.47.0 release as well as a patch changelogs entry but that might be unnecessary and prevent from actually patching the changelogs pinned in the tag? So what I was about to do: diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md
index 1626a471..b8531957 100644
--- a/core/CHANGELOG.md
+++ b/core/CHANGELOG.md
@@ -1,11 +1,15 @@
# 0.35.1
- Update to `p256` `v0.11.0`. See [PR 2636].
+- Patch CHANGELOG. See [PR 2851].
[PR 2636]: https://github.com/libp2p/rust-libp2p/pull/2636/
+[PR 2851]: https://github.com/libp2p/rust-libp2p/pull/2851
# 0.35.0
+- Update prost requirement from 0.10 to 0.11 which no longer installs the protoc Protobuf compiler.
+ Thus you will need protoc installed locally. See [PR 2788].
- Drop `Unpin` requirement from `SubstreamBox`. See [PR 2762] and [PR 2776].
- Drop `Sync` requirement on `StreamMuxer` for constructing `StreamMuxerBox`. See [PR 2775].
- Use `Pin<&mut Self>` as the receiver type for all `StreamMuxer` poll functions. See [PR 2765].
@@ -19,6 +23,7 @@
[PR 2776]: https://github.com/libp2p/rust-libp2p/pull/2776
[PR 2765]: https://github.com/libp2p/rust-libp2p/pull/2765
[PR 2797]: https://github.com/libp2p/rust-libp2p/pull/2797
+[PR 2788]: https://github.com/libp2p/rust-libp2p/pull/2788
# 0.34.0
lmk what you think it's best. |
Patching the changelog itself doesn't need a changelog entry IMO :) |
yeah agree, it's more the habit at this point |
With #2851 merged, I will close here. @divagant-martian thanks for the patch! |
Summary
the upgrade to prost v0.11.0 includes some breaking changes, including prost no longer installing protoc. As a consequence the last version requires protoc to be explicitely/manually installed. See https://github.com/tokio-rs/prost/releases/tag/v0.11.0 and https://github.com/sigp/lighthouse/runs/8005207211?check_suite_focus=true#step:6:1020 for the error that now we get building libp2p's latests version
Expected behaviour
Either libp2p should continue to build or the new requirement should be noted in the release notes and installation guide
Actual behaviour
upgrading libp2p unexpectedly fails to build. See below copied error from CI
Debug Output
Possible Solution
ideally install protoc, but I assume there is a reason behind prost removing this from their build script. If this is not possible, protoc should be noted as a build dependency in the docs.
Version
v0.47.0
Would you like to work on fixing this bug?
Maybe but I'm not sure why the change was done in prost in the first place
The text was updated successfully, but these errors were encountered: