go-docker icon indicating copy to clipboard operation
go-docker copied to clipboard

Go Module friendly

Open millergarym opened this issue 6 years ago • 9 comments
trafficstars

This "Official Go SDK for Docker" causes an error when using go mod tidy

See PR #18 .

$ go mod tidy
github.com/a/b/c imports
        docker.io/go-docker tested by
        docker.io/go-docker.test imports
        github.com/docker/docker/internal/testutil: module github.com/docker/docker@latest found (v1.13.1), but does not contain package github.com/docker/docker/internal/testutil

millergarym avatar Nov 03 '19 01:11 millergarym

Is there anyone maintaining this repository?

nick4fake avatar Dec 28 '19 11:12 nick4fake

I am experiencing the same issue. Looks like https://github.com/docker/go-docker/pull/18 is already adressing this.

msvechla avatar Jan 05 '20 13:01 msvechla

FYI as a quick fix you can add the following to your go.mod:

replace (
  github.com/docker/docker/internal/testutil => gotest.tools/v3 v3.0.0
)

msvechla avatar Jan 05 '20 13:01 msvechla

There is no one maintaining this repo. It has been "WIP" for years and has not been touched.

cpuguy83 avatar Jan 06 '20 17:01 cpuguy83

NOOOOOOOOO

devinbost avatar Jul 08 '20 19:07 devinbost

This issue might be related: https://github.com/moby/moby/issues/41191

devinbost avatar Jul 08 '20 20:07 devinbost

Is there a chance that this will be fixed? Why is no one maintaining the repo? It seems to be an official repo.

maxekman avatar May 21 '21 08:05 maxekman

Hate to say never, but no this is not likely to be fixed. I'm not even sure why the repo was made public.

cpuguy83 avatar May 21 '21 18:05 cpuguy83

The "official" sdk package is github.com/docker/docker/client (which is in github.com/moby/moby).

If you are looking for something more module (and for that matter non-API breaking) friendly, github.com/cpuguy83/go-docker is something I started. It is incomplete but I will take PR's to add missing API calls.

cpuguy83 avatar May 21 '21 18:05 cpuguy83