Skip to content

Update rtnetlink#19

Merged
mxinden merged 3 commits into
libp2p:masterfrom
ackintosh:update-rtnetlink
Jun 24, 2022
Merged

Update rtnetlink#19
mxinden merged 3 commits into
libp2p:masterfrom
ackintosh:update-rtnetlink

Conversation

@ackintosh

@ackintosh ackintosh commented Jun 23, 2022

Copy link
Copy Markdown
Contributor

Currently, the CI workflow on Linux fails.

https://github.com/ackintosh/if-watch/runs/7024984543?check_suite_focus=true

Compiling rtnetlink v0.9.1
error[E0432]: unresolved import netlink_proto::ErrorKind
Error: --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rtnetlink-0.9.1/src/lib.rs:47:9
|
47 | ErrorKind,
| ^^^^^^^^^ no ErrorKind in the root

From what I've seen, it is due to incompatibility in netlink-proto v0.9.3, which is a dependency of rtnetlink v0.9. ErrorKind is removed in netlink-proto v0.9.3 but rtnetlink v0.9 is still using it.

The issue above can be solved by updating rtnetlink from v0.9 to v0.10.

Release note on netlink: https://github.com/little-dude/netlink/releases/tag/20220623

@mxinden mxinden left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed to fix rust-libp2p as well.

Thank you very much @ackintosh for both debugging and providing the full patch!

@mxinden
mxinden merged commit 2d53554 into libp2p:master Jun 24, 2022
@mxinden

mxinden commented Jun 24, 2022

Copy link
Copy Markdown
Member

Tagged and published.

@ackintosh
ackintosh deleted the update-rtnetlink branch June 24, 2022 07:22
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

Successfully merging this pull request may close these issues.

2 participants