Closed zanhsieh closed 8 years ago
Same here when trying to go get
the engine-api
to use it in one of my Go programs:
alpine34:~/gowork/src/github.com/zaunerc/cntinsight$ go version
go version go1.6.3 linux/amd64
alpine34:~/gowork/src/github.com/zaunerc/cntinsight$ go get
# github.com/docker/engine-api/client/transport
../../docker/engine-api/client/transport/tlsconfig_clone.go:10: c.Clone undefined (type *tls.Config has no field or method Clone)
alpine34:~/gowork/src/github.com/zaunerc/cntinsight$
@zaunerc hum this feels weird, I cannot reproduce it on a clean environment
$ go version
go version go1.6.3 linux/amd64
$ go get github.com/docker/engine-api
$
Tried it on 1.6.2, 1.6.3 too…
I have run some further tests. When compiling docker/engine-api
using the current master (611c63f5121770f6d0db2f9988458310ccbfbe74
) I can reproduce the problem.
When compiling using the release/1.12
branch docker/engine-api
compiles just fine.
Maybe this has something to do with my development environment:
frolvlad/alpine-glibc
(Alpine Linux with glibc installed)I will try to reproduce this problem using the following Docker images:
https://github.com/docker/engine-api/pull/382#issuecomment-244512952 made go1.7
only supported version. It is not hard to write a hack for this case for go1.6
as well but I'm not sure if we want to maintain support for multiple go versions.
Verified issue no longer existed. Close it for now.
Hi,
I ran the sample code provided on README.md of this repo, and got this error:
My environment:
Did I do something wrong?
UPDATE: v0.4.0 seems fine without this issue.