ireaderlab / alex

http benchmark web app based on vegeta & boom
Apache License 2.0
285 stars 63 forks source link

编译报错 #3

Open gaoyuanzong opened 6 years ago

gaoyuanzong commented 6 years ago

→ 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

robertXin commented 6 years ago

没人解决吗?一样的问题

liliang8858 commented 6 years ago

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

liliang8858 commented 6 years ago

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

liliang8858 commented 6 years ago

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 注释掉 ,再次执行命令即可