TLS问题go get

时间:2018-06-07 11:18:29

标签: go

我正在尝试从github安装etcctl。 (P.S我不知道golang)

git config --global http.sslVerify false go get github.com/coreos/etcd/etcdctl

但我正在点击以下内容。 github.com/coreos/etcd/vendor/go.uber.org/zap /root/projects/src/src/github.com/coreos/etcd/vendor/go.uber.org/zap/field.go:33: syntax error: unexpected = in type declaration github.com/coreos/etcd/pkg/tlsutil /root/projects/src/src/github.com/coreos/etcd/pkg/tlsutil/cipher_suites.go:26: undefined: tls.TLS_RSA_WITH_AES_128_CBC_SHA256 /root/projects/src/src/github.com/coreos/etcd/pkg/tlsutil/cipher_suites.go:36: undefined: tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 /root/projects/src/src/github.com/coreos/etcd/pkg/tlsutil/cipher_suites.go:37: undefined: tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 /root/projects/src/src/github.com/coreos/etcd/pkg/tlsutil/cipher_suites.go:42: undefined: tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305 /root/projects/src/src/github.com/coreos/etcd/pkg/tlsutil/cipher_suites.go:43: undefined: tls.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305

1 个答案:

答案 0 :(得分:1)

您正在尝试使用旧版本的Go。 etd requires Go 1.10 or newer来构建。