dockerclient icon indicating copy to clipboard operation
dockerclient copied to clipboard

Error when installing from go get github.com/samalba/dockerclient

Open schlunsen opened this issue 10 years ago • 2 comments

go get github.com/samalba/dockerclient

Gives this error

# github.com/samalba/dockerclient
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:258: syntax error: unexpected range, expecting {
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:258: missing statement after label
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:261: syntax error: unexpected case, expecting semicolon or newline or }
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:267: syntax error: argument to go/defer must be function call
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:270: syntax error: unexpected }
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:272: non-declaration statement outside function body
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:273: syntax error: unexpected }
root@webserver:/etc/docker# /root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:258: syntax error: unexpected range, expecting {
bash: /root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:258:: No such file or directory

Using go version go1.2.1 linux/amd64

schlunsen avatar Sep 16 '15 10:09 schlunsen

The same for me,

kepler@nebula ~$ go get -u github.com/docker/swarm
# github.com/samalba/dockerclient
go/src/github.com/samalba/dockerclient/dockerclient.go:258: syntax error: unexpected range, expecting {
go/src/github.com/samalba/dockerclient/dockerclient.go:258: missing statement after label
go/src/github.com/samalba/dockerclient/dockerclient.go:261: syntax error: unexpected case, expecting semicolon or newline or }
go/src/github.com/samalba/dockerclient/dockerclient.go:267: syntax error: argument to go/defer must be function call
go/src/github.com/samalba/dockerclient/dockerclient.go:270: syntax error: unexpected }
go/src/github.com/samalba/dockerclient/dockerclient.go:272: non-declaration statement outside function body
go/src/github.com/samalba/dockerclient/dockerclient.go:273: syntax error: unexpected }

go version go1.3.3 linux/amd64 Linux nebula 3.19.0-26-generic #28-Ubuntu SMP Tue Aug 11 14:16:32 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

rafaelcapucho avatar Sep 21 '15 20:09 rafaelcapucho

I guess dockerclient requires go1.4 now.

vieux avatar Sep 21 '15 20:09 vieux