rakyll / hey

HTTP load generator, ApacheBench (ab) replacement
Apache License 2.0
17.66k stars 1.17k forks source link

Download links broken #222

Open saurabnigam opened 3 years ago

abhirockzz commented 3 years ago

@rakyll This is probably not an urgent ask by any means, but your help here would be really appreciated! Thank you!

didier-durand commented 3 years ago

Hi, is there another way to obtain the binaries: stored elsewhere?

bharathnatarajan1 commented 3 years ago

@rakyll Could you please help in fixing broken 'Download Links' ? We were thinking to use this great app but couldn't, due to broken links. Is there a workaround to get the binaries for Windows?

didier-durand commented 3 years ago

@bharathnatarajan1 : if you work on Ubuntu like me, there is a package that you can install via snapd. It works fine : look at line 225 of my https://github.com/didier-durand/knative-on-cloud-kubernetes/blob/master/.github/workflows/gcloud-gke-knative.yml to see how I did it to work on Github CI / CD

bharathnatarajan1 commented 3 years ago

@bharathnatarajan1 : if you work on Ubuntu like me, there is a package that you can install via snapd. It works fine : look at line 225 of my https://github.com/didier-durand/knative-on-cloud-kubernetes/blob/master/.github/workflows/gcloud-gke-knative.yml to see how I did it to work on Github CI / CD

@didier-durand Thankyou :) Is there a way to download the package in Windows machine? Need this to test FaaS app running on Windows 10 Platform.

didier-durand commented 3 years ago

The simplest is to install an Ubuntu instance on your Windows machine (VirtualBox, HyperV, etc.) and run hey from there.

gnat commented 3 years ago

Thankfully the binary is still available with a simple apt install hey

But still, if you no longer wish to maintain the google account, just attach the binaries to the release or something @rakyll

I feel like this broke at least a few hundred CI pipelines out in the wild, ha.

SachinMaharana commented 3 years ago

I couldn't install it through sudo apt install hey

sudo apt install hey                                                                            1 ↵
Alias tip: _ apt install hey
Reading package lists... Done
Building dependency tree       
Reading state information... Done

No apt package "hey"
E: Unable to locate package hey

If anybody still has issues with installing in ubuntu, could use the following command:

curl -sf https://gobinaries.com/rakyll/hey | sh

didier-durand commented 3 years ago

Look at my comment above : https://github.com/rakyll/hey/issues/222#issuecomment-695233192 you have a working solution for Ubuntu and the proof that it works if you look at the execution journals.

SachinMaharana commented 3 years ago

@didier-durand yes sir, i did saw your solution for ubuntu, and that also works, but personally i am not a big fan of snaps , as i had noticed few weird issues in the past in my ubuntu system. using the above command works for me very well.

didier-durand commented 3 years ago

That's the only thing that I tried. Sorry & good luck! Didier

kuzminets commented 3 years ago

If anybody still has issues with installing in ubuntu, could use the following command:

curl -sf https://gobinaries.com/rakyll/hey | sh

The script downloads the binary from this link https://gobinaries.com/binary/github.com/rakyll/hey?os=linux&arch=amd64&version=v0.1.4

raylee commented 3 years ago

Another option is to install the go compiler, it's quick! With that you can build the executable from source by: go get github.com/rakyll/hey The resulting binary will be $(go env GOPATH)/bin/hey. I.e.:

$ go get github.com/rakyll/hey
$ sudo cp $(go env GOPATH)/bin/hey /usr/local/bin/
$ hey
Usage: hey [options...] <url>

Options:
[...]
Z13NDELS commented 3 years ago

@rakyll Have you considered moving hey releases in GitHUb ? They provide some nice tooling! There seems to be quite complete guides like this one https://github.com/mh-cbon/go-github-release

wahmedswl commented 3 years ago

https://github.com/rakyll/hey/issues/222#issuecomment-704918310 is good option, downloaded build from windows via

https://gobinaries.com/binary/github.com/rakyll/hey?os=windows&arch=amd64&version=v0.1.4

rustberry commented 3 years ago

Another option is to install the go compiler, it's quick! With that you can build the executable from source by: go get github.com/rakyll/hey The resulting binary will be $(go env GOPATH)/bin/hey. I.e.:

$ go get github.com/rakyll/hey
$ sudo cp $(go env GOPATH)/bin/hey /usr/local/bin/
$ hey
Usage: hey [options...] <url>

Options:
[...]

For those use this method under Windows and need to use proxy for go get: type below proxy setting as environment variables, then go get will use these settings.

set HTTPS_PROXY=host:port
set https_proxy=host:port
go get github.com/rakyll/hey
alexellis commented 2 years ago

I have built a builder for hey, which produces binaries to GitHub for download.

It has:

Folks you're welcome to use that. @rakyll, if you'd like a PR, I'd be open to upstreaming this. GitHub runs the works, and there's nothing for you to do really.

https://github.com/alexellis/hey

We will probably also add it to arkade for download via arkade get hey

See releases: https://github.com/alexellis/hey/releases/