go-dockerclient: Possible dependency failure
- I’ve started a project
- Imported
github.com/fsouza/go-dockerclient - Ran
dep ensure
On trying to run the program, I’m encoutering the following error
../../vendor/github.com/docker/docker/opts/address_pools.go:15:12: undefined: ipamu
tils.NetworkToSplit
Anybody experienced this issue before ?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 6
- Comments: 16 (10 by maintainers)
Commits related to this issue
- fix issue with `go-dockerclient` as mentioned here: <https://github.com/fsouza/go-dockerclient/issues/736#issuecomment-397800605> — committed to jankaszel/docker-recreate by jankaszel 6 years ago
@fabianem awesome, I’m glad you were able to figure it out!
@fsouza unfortunately removing
github.com/docker/dockerand using go-dockerclient’s master didn’t solve the problem. But I finally figured a problem, which makes kinda solution - I am quite new to golang and especially dep, so not quite sure if this is the best approach:Gopkg.toml:
What I did now is added for
github.com/docker/dockerbranch = "master"instead ofrevision = "a422774e593b33bd287d9890544ad9e09b380d8c". But this brought me to the next problem, some dependency issue withgithub.com/docker/libnetwork. Unfortunately this repository stopped releasing new versions but development continues. And dep automatically tried to pull the newest release (which is over 2years old) and of course some changes were missing. So I did include also an override forgithub.com/docker/libnetworkwithbranch = "master". Finally, now it seems to work 😃@fsouza thanks for your help 😃 I would like to share my repo with you but the project I am working on is for a client and in a private repo - I am integrating Hyperledge fabric into a SaaS platform and developing currently fabric chaincodes in golang 😃
Sorry @scriptonist @PMoneda, this issue has been fixed on master but I need to tag a new release, my bad. Just tagged 1.2.1, so the
[[override]]won’t be necessary.