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

Most upvoted comments

@fabianem awesome, I’m glad you were able to figure it out!

@fsouza unfortunately removing github.com/docker/docker and 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:

[prune]
  go-tests = true
  unused-packages = true

[[constraint]]
  name = "github.com/pkg/errors"
  version = "0.8.0"

[[override]]
  name = "gopkg.in/fsnotify.v1"
  source = "gopkg.in/fsnotify/fsnotify.v1"

[[override]]
  branch = "master"
  name = "github.com/hpcloud/tail"

[[constraint]]
  name = "github.com/onsi/ginkgo"
  version = "1.6.0"

[[constraint]]
  name = "github.com/onsi/gomega"
  version = "1.4.2"

[[constraint]]
  name = "github.com/hyperledger/fabric"
  version = "1.3.0"

[[constraint]]
  name = "github.com/BurntSushi/toml"
  version = "0.3.1"

[[constraint]]
  name = "github.com/grpc-ecosystem/go-grpc-middleware"
  version = "1.0.0"

[[override]]
  name = "github.com/docker/docker"
  branch = "master"

[[constraint]]
  name = "github.com/fsouza/go-dockerclient"
  branch = "master"

[[override]]
  name = "github.com/docker/libnetwork"
  branch = "master"

What I did now is added for github.com/docker/docker branch = "master" instead of revision = "a422774e593b33bd287d9890544ad9e09b380d8c". But this brought me to the next problem, some dependency issue with github.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 for github.com/docker/libnetwork with branch = "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.