s3-benchmark
s3-benchmark copied to clipboard
build fails with "not enough arguments in call", want (context.Context)
The provided documentation doesn't include instructions on how to build this from source, and the provided binaries don't include the -endpoint option necessary to test alternative S3 providers.
(Looking to run some simple tests of @Minio on @packethost across a few machine type combinations, will be happy to share results).
emv@bastion-0:~/go/bin$ go get -v github.com/dvassallo/s3-benchmark
github.com/dvassallo/s3-benchmark
# github.com/dvassallo/s3-benchmark
../src/github.com/dvassallo/s3-benchmark/main.go:212:32: not enough arguments in call to createBucketReq.Send
have ()
want (context.Context)
../src/github.com/dvassallo/s3-benchmark/main.go:251:26: not enough arguments in call to headReq.Send
have ()
want (context.Context)
../src/github.com/dvassallo/s3-benchmark/main.go:273:24: not enough arguments in call to putReq.Send
have ()
want (context.Context)
../src/github.com/dvassallo/s3-benchmark/main.go:347:28: not enough arguments in call to req.Send
have ()
want (context.Context)
../src/github.com/dvassallo/s3-benchmark/main.go:498:24: not enough arguments in call to putReq.Send
have ()
want (context.Context)
../src/github.com/dvassallo/s3-benchmark/main.go:547:26: not enough arguments in call to headReq.Send
have ()
want (context.Context)
emv@bastion-0:~/go/bin$
this is with go1.12.4
I went to the source directory and did dep ensure
after installing dep
, and now it builds.
I reviewed https://mycodesmells.com/post/vendoring-go-dependencies-with-dep to help me with this.
Thanks, thanks great!
The s3-endpoint option should be available from the pre-built binaries now too. I've just pushed them.