alex icon indicating copy to clipboard operation
alex copied to clipboard

编译报错

Open gaoyuanzong opened this issue 7 years ago • 4 comments

→ go build

github.com/ireaderlab/alex

./vegeta.go:453:35: not enough arguments in call to attacker.Attack have (vegeta.Targeter, uint64, time.Duration) want (vegeta.Targeter, uint64, time.Duration, string)

→ go version go version go1.9.2 darwin/amd64

gaoyuanzong avatar Jun 13 '18 07:06 gaoyuanzong

没人解决吗?一样的问题

robertXin avatar Jun 21 '18 06:06 robertXin

你们是不是windows上装的 我也是这问题

liliang8858 avatar Jun 28 '18 11:06 liliang8858

image 我是这样解决的,不知道是否有问题

liliang8858 avatar Jun 28 '18 11:06 liliang8858

dep ensure 命令报错 grouped write of manifest, lock and vendor: error while writing out vendor tree: failed to write dep tree: failed to export golang.org/x/sys: unable to deduce repository and source type for "golang.or g/x/sys": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://golang.org/x/sys?go-get=1": Get http://golang.org/x/sys?go-get=1: dial tcp 216.239.37.1:80: connecte x: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

解决: 如果本地安装了 golang/x image 注释掉 ,再次执行命令即可

liliang8858 avatar Jun 28 '18 11:06 liliang8858