-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker engine-api library is deprecated, we should use their official SDK #2071
Comments
@sparrc The new API is in a vendored repo, this breaks the build because of types incompatibilities. |
please don't bother PRing a new vendoring system, it won't be accepted. There's no reason the current vendoring system shouldn't work with the new docker API, you just need to add those dependencies to the Godeps file. |
OK, no worries, I'll try to adapt the tests to workaround the types issue then. |
Any news around this plugin update? |
@sparrc Ok thanks then I will open a new issue I am not sure it is related. |
I was planning to look into it a bit tonight to assess the quantity of work required. I will get back to you. |
I had raised an PR for the #2379, and made following changes Recieved following issue, PR is closed, but, issue is because of dependency referring to wrong repository/library Summarizing the issue, import in the file (plugins/inputs/docker/docker.go) is as follows
During compilation based on length go is selecting the 2 repository. But method needs the 1st one golang.org/x/net/context. hence the type error in code snippet is recieved Aliasing cannot be used here as libraries should not vendor other libraries. If the vendor thing is taken care of then the PR can be used. Please have a look |
Docker's engine-api library is deprecated: https://github.com/docker/engine-api
we should switch to https://github.com/docker/docker/tree/master/client as soon as possible
The text was updated successfully, but these errors were encountered: