-
Notifications
You must be signed in to change notification settings - Fork 879
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
ipvs.go:94:32: cannot use &tv (type *syscall.Timeval) as type *unix.Timeval in argument to sock.SetSendTimeout #2110
Comments
@nim-nim the issue is not with go 1.9.4 but with the version of the netlink library that you are using to compile. For libnetwork you need to use the one that is vendored where the propotype of method is:
This is the commit that changed the prototype: vishvananda/netlink@0e3b74d |
@fcrisciani is there a reason we can't simply cast the |
@amoghe they are 2 different types, they are not castable to each other, you will need to convert one into the other, but anyway that is not the only dependency that we have with netlink. |
@fcrisciani understood. But with I understand this isn't strictly a libnetwork issue - but I'm not sure how to work around this. Any thoughts? |
The
And the
So maybe performing the cast may allow us to move to a newer version of the library (maybe the |
@amoghe in dep you can force with a constraint to get a specific commit id |
True, but since I'm not explicitly imported that lib, this is a little fragile. See this message from dep:
|
I'm wondering if using the updated type will be sufficient for us to move to the |
try this:
|
not sure, I did not spend time trying to change the revision, it can be easy as only fixing that type but the problem can still appear when libnetwork is vendored inside moby/mody for integration |
If you're open to the change - I can try to bump the lib to By moving to a specific version ( |
you can give it a shot, but I would try to bump in moby/moby directly and identify all the places where there is the issue |
Does
Or are you suggesting something else? |
I had a PR that bumped the version; #2118, but looks like it needs an update 😅 |
@thaJeztah thats from March . Any chance you could resuscitate it? :-) |
netlink was updated in PR #2366 (revendor in moby/moby is done in moby/moby#39054) |
With Go 1.9.4 x86_64 Linux
The text was updated successfully, but these errors were encountered: