Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

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

Open
schlunsen opened this issue Sep 16, 2015 · 2 comments
Open

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

schlunsen opened this issue Sep 16, 2015 · 2 comments

Comments

@schlunsen
Copy link

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

@rafaelcapucho
Copy link

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

@vieux
Copy link
Contributor

vieux commented Sep 21, 2015

I guess dockerclient requires go1.4 now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants