-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
WIP: update go-libp2p to v0.24.0 #9423
Conversation
ce10543
to
c99adc3
Compare
@Jorropo : can you please work with @marten-seemann to get this landed? I want to make sure he has a dedicated point of contact so this doesn't stall. And if it makes sense to take something over, go for it. I leave it up to you guys to decide. |
|
Thanks for creating the overarching tracking issue @marten-seemann . I had missed it. The plan makes sense. I have it now on in our current 0.18 "iteration". |
c99adc3
to
f9b1f5c
Compare
@Jorropo What are the plans for bubbling up the dependency updates? |
@marten-seemann Ill take Care of it for 0.18 once 0.24 is released. |
I'd suggest making this 2 separate PRs. One (this PR) that only updates go-libp2p to v0.24.0 (dealing only with breaking API / dependency changes), and then a follow-up to do the WebTransport-related changes. |
@marten-seemann sounds like a good plan |
11d0a7e
to
b08e0ea
Compare
@Jorropo Updated the PR to the recently released v0.24.0. |
a675251
to
cfd0034
Compare
When trying to use
for some reason, this doesn't need to be investigated now, we can defer this to later, just mutting staticcheck's complain for now. |
cfd0034
to
8dbabd0
Compare
8dbabd0
to
4468077
Compare
go-libp2p-kad-dht v0.19.0 was just released. |
go.mod
Outdated
github.com/libp2p/go-libp2p-loggables v0.1.0 | ||
github.com/libp2p/go-libp2p v0.24.0 | ||
github.com/libp2p/go-libp2p-http v0.4.0 | ||
github.com/libp2p/go-libp2p-kad-dht v0.18.1-0.20221120203245-43eacaff1f99 |
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.
@marten-seemann since this is still wip, is it possible to include libp2p/go-libp2p-kad-dht#793?
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.
We released v0.19.0 yesterday.
libp2p/go-libp2p-kad-dht#793 would require a new release, but this is orthogonal to this PR, isn't it?
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.
Yes, this could be a separate release and could be a separate PR.
I am flagging this because "required" list for Kubo 0.18 (#9417) includes #9389 which (iiuc) needs a new libp2p release with libp2p/go-libp2p-kad-dht#794 and libp2p/go-libp2p-kad-dht#793.
So either we need a patch release, or to descope the above from Kubo 0.18. (cc @BigLep)
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.
I am flagging this because "required" list for Kubo 0.18 (#9417) includes #9389 which (iiuc) needs a new libp2p release with libp2p/go-libp2p-kad-dht#794 and libp2p/go-libp2p-kad-dht#793.
go-libp2p-kad-dht is not a dependency of go-libp2p, it's the other way around. So no new go-libp2p release required.
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.
Ah, sweet! In that case is it ok for me to just merge libp2p/go-libp2p-kad-dht#794 and libp2p/go-libp2p-kad-dht#793 and make a new v0.20.0 release of go-libp2p-kad-dht?
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.
@lidel I've bumped go-libp2p-kad-dht to v0.19.0 in ipfs/go-namesys#33 as long as you don't break v0.19.0's api in v0.20.0 (which neither of the PR you linked do), I'm good.
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.
Pinged some folks for review on go-libp2p-kad-dht PRs, but it should not block this PR.
We can bump in a follow-up one.
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.
5088238
to
72e9e68
Compare
72e9e68
to
480829a
Compare
480829a
to
ee11ef6
Compare
I finally fixed it by doing this: https://github.com/ipfs/kubo/blob/ee11ef6d2ca0df494e4d709f8354109452185a47/internal/i-hate-what-I-am-doing-here.go it's horrible looking but we are good enough since this isn't actually compiled. |
ee11ef6
to
35c1fbb
Compare
35c1fbb
to
353aed0
Compare
bdf8d51
to
353aed0
Compare
It seems to be fine now that everything has been updated.
f083628
to
269297d
Compare
269297d
to
329d587
Compare
This won't be fun. Lots of dependencies to update / release. This is because we need to get rid of the go-libp2p-core dependency (even the indirect one).
Here's the list, in no particular order: