go-docker
go-docker copied to clipboard
Go Module friendly
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
Is there anyone maintaining this repository?
I am experiencing the same issue. Looks like https://github.com/docker/go-docker/pull/18 is already adressing this.
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
)
There is no one maintaining this repo. It has been "WIP" for years and has not been touched.
NOOOOOOOOO
This issue might be related: https://github.com/moby/moby/issues/41191
Is there a chance that this will be fixed? Why is no one maintaining the repo? It seems to be an official repo.
Hate to say never, but no this is not likely to be fixed. I'm not even sure why the repo was made public.
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.