Skip to content
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

Can't get libnetwork due to github.com/docker/docker/pkg/tlsconfig missing #2652

Closed
rsasum opened this issue Jan 29, 2022 · 3 comments
Closed

Comments

@rsasum
Copy link

rsasum commented Jan 29, 2022

Hi,

I wanted to try the example in the libnetwork readme. But unfortunately I cannot get the example compile because go get to retrieve dependencies fails:

go get github.com/docker/libnetwork
github.com/docker/libnetwork imports
        github.com/docker/libnetwork/config imports
        github.com/docker/docker/pkg/tlsconfig: cannot find module providing package github.com/docker/docker/pkg/tlsconfig
github.com/docker/libnetwork imports
        github.com/docker/libnetwork/drivers/bridge imports
        github.com/docker/libnetwork/portmapper imports
        github.com/docker/docker/pkg/proxy: cannot find module providing package github.com/docker/docker/pkg/proxy

I tried to install different specific versions, but none worked. What can I do?

@fenxiong
Copy link

fenxiong commented Mar 2, 2022

Running into this issue as well. it seems to be because this change is not in the version that go get tries to pull by default (v0.5.6).

i then tried latest commit with go get github.com/docker/libnetwork@master but that failed with another error:

go get github.com/docker/libnetwork@master
go: downloading github.com/docker/libnetwork v0.8.0-dev.2.0.20210525090646-64b7a4574d14
go: downloading github.com/BurntSushi/toml v1.0.0
go: downloading github.com/armon/go-radix v1.0.0
go: downloading github.com/godbus/dbus/v5 v5.1.0
go: downloading github.com/hashicorp/memberlist v0.3.1
go: downloading golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9
# github.com/vishvananda/netlink/nl
/Volumes/workplace/go/pkg/mod/github.com/vishvananda/[email protected]/nl/parse_attr.go:26:9: undefined: rtaAlignOf
/Volumes/workplace/go/pkg/mod/github.com/vishvananda/[email protected]/nl/parse_attr.go:43:23: undefined: NLA_F_NESTED
/Volumes/workplace/go/pkg/mod/github.com/vishvananda/[email protected]/nl/parse_attr.go:44:57: undefined: NLA_TYPE_MASK
/Volumes/workplace/go/pkg/mod/github.com/vishvananda/[email protected]/nl/parse_attr.go:53:15: undefined: NLA_F_NET_BYTEORDER
/Volumes/workplace/go/pkg/mod/github.com/vishvananda/[email protected]/nl/parse_attr.go:62:15: undefined: NLA_F_NET_BYTEORDER
# github.com/docker/libnetwork/portallocator
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/portallocator/portallocator.go:115:21: undefined: getDynamicPortRange
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/portallocator/portallocator.go:117:19: cannot assign int to start in multiple assignment
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/portallocator/portallocator.go:117:19: cannot assign int to end in multiple assignment
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/portallocator/portallocator.go:117:19: cannot assign error to err in multiple assignment
# github.com/docker/libnetwork/osl
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/osl/sandbox.go:31:60: undefined: IfaceOption
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/osl/sandbox.go:65:75: undefined: NeighOption
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/osl/sandbox.go:96:19: undefined: NeighOption
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/osl/sandbox.go:100:14: undefined: NeighOption
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/osl/sandbox.go:106:15: undefined: IfaceOption
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/osl/sandbox.go:109:31: undefined: IfaceOption
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/osl/sandbox.go:112:22: undefined: IfaceOption
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/osl/sandbox.go:115:26: undefined: IfaceOption
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/osl/sandbox.go:118:35: undefined: IfaceOption
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/osl/sandbox.go:123:17: undefined: IfaceOption
/Volumes/workplace/go/pkg/mod/github.com/docker/[email protected]/osl/sandbox.go:123:17: too many errors

which seems to be because those are not defined for every platform and i am on a mac.

I then try GOOS=linux go get github.com/docker/libnetwork@master, which works for me.

@rsasum
Copy link
Author

rsasum commented Jul 9, 2022

Thanks a lot, that worked for me too.

@akerouanton
Copy link
Member

Thanks for reporting!

This repo is now defunct (code has moved to https://github.com/moby/moby/tree/master/libnetwork), and is not actively watched by maintainers. So let me close this issue.

@akerouanton akerouanton closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
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

No branches or pull requests

3 participants