-
Notifications
You must be signed in to change notification settings - Fork 957
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
feat: migrate to quick-protobuf #3312
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this is what I was looking for, thanks!
Once we delete the other proto files, those should hopefully show up as moved rather than added.
Dang, just saw CI doesn't actually like this. I am no bash expert but maybe try globbing into a variable first? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks to both of you for the work here!
I'll try that. I'm no expert on that either so I will probably have to push quite a bit to test it so I apologize in advance. Also, will update this PR soon. |
Looks like it works https://github.com/libp2p/rust-libp2p/actions/runs/3898831952/jobs/6657940569 |
Looks like the diff is not working though. This run should have failed. https://github.com/libp2p/rust-libp2p/actions/runs/3898847742/jobs/6657969252 |
Why did you expect it to fail? Did you modify any of the generated code in a commit? |
I modified the glob so every *.proto file should be getting compiled including the ones outside /generated. |
The problem is that those are untracked files so they don't seem to "fail" the |
This is unnecessary as we can see the command being executed in the action log. See https://github.com/libp2p/rust-libp2p/actions/runs/3898847742/jobs/6657969252#step:5:4.
This reverts commit 391a892.
Thanks for the help!
|
This pull request has merge conflicts. Could you please resolve them @kckeiks? 🙏 |
@mxinden This is ready to merge from my end. You will need to merge libp2p/github-mgmt#128 before you can merge here to update the required jobs. |
This pull request has merge conflicts. Could you please resolve them @kckeiks? 🙏 |
Approvals have been dismissed because the PR was updated after the send-it
label was applied.
I think some of the changelog diffs have been applied to the wrong version as of the last release now. |
Good catch. @thomaseizinger can you send a pull request in the next couple of days? |
Thanks @kckeiks and @thomaseizinger for all the work here! |
My mind is engineering a I can send a PR although it might take a while, have a busy weekend ahead and flying to Europe on Tuesday morning. |
Sent it here: #3541 |
Instead of relying on `protoc` and buildscripts, we generate the bindings using `pb-rs` and version them within our codebase. This makes for a better IDE integration, a faster build and an easier use of `rust-libp2p` because we don't force the `protoc` dependency onto them. Resolves libp2p#3024. Pull-Request: libp2p#3312.
Whilst libp2p#3312 was in development, we pushed a new release out and forgot to move the changelog entries to the new version. Unfortunately, this is all still very manual until we have a solution for libp2p#2902 so this stuff keeps happening. Pull-Request: libp2p#3541.
Hasn't been needed since libp2p 0.51.1. libp2p/rust-libp2p#3312
Hasn't been needed since libp2p 0.51.1. libp2p/rust-libp2p#3312
Description
Instead of relying on
protoc
and buildscripts, we generate the bindings usingpb-rs
and version them within our codebase. This makes for a better IDE integration, a faster build and an easier use ofrust-libp2p
because we don't force theprotoc
dependency onto them.Resolves #3024.
Change checklist