Skip to content

Trouble vendoring docker with glide #661

@deinspanjer

Description

@deinspanjer

I'm working on a project and wanted to convert it over to using glide.

I ran glide create and generated the following yaml:

package: github.com/myco/myapp
import:
- package: github.com/dghubble/sling
- package: github.com/docker/docker
  subpackages:
  - api/types
  - api/types/container
  - api/types/strslice
  - client
- package: github.com/docker/go-connections
  subpackages:
  - nat
- package: github.com/kardianos/osext
- package: github.com/sanbornm/go-selfupdate
  subpackages:
  - selfupdate
- package: github.com/shibukawa/configdir
- package: golang.org/x/net
  subpackages:
  - context
- package: golang.org/x/oauth2

However, when I tried to run glide install, it kept failing with the errors:

[ERROR]	Error scanning github.com/docker/docker/api/types/container: open /Users/dre/.glide/cache/src/https-github.com-docker-docker/api/types/container: no such file or directory
...
[ERROR]	Error scanning github.com/docker/docker/api/types/strslice: open /Users/dre/.glide/cache/src/https-github.com-docker-docker/api/types/strslice: no such file or directory
...
[ERROR]	Error scanning github.com/docker/docker/client: open /Users/dre/.glide/cache/src/https-github.com-docker-docker/client: no such file or directory
[ERROR]	Failed to retrieve a list of dependencies: Error resolving imports

I tried various combinations of resetting my GOPATH and clearing my previous vendor directory.

Eventually I happened on the one thing that did work.

After creating the yaml, I had to manually run go get github.com/docker/go-connections. For some reason, that then let me run install without a problem, but if I try to run glide update, it still fails with the same errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions