rakyll / hey

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

Cannot find packge in $GOPATH and $GOROOT #290

Open Anpilaot opened 1 year ago

Anpilaot commented 1 year ago

Hey

I tried to install the package on my ubuntu. I have go1.6 installed.

When I type go run hey.go it gives me the following:

cannot find package "github.com/rakyll/hey/requester" in any of: /usr/lib/go-1.6/src/github.com/rakyll/hey/requester (from $GOROOT) ($GOPATH not set)

I tried to set the $GOPATH to my home directory, but it didn't work.

Also tried to update the URI of the hey page to pull info from.

What am I doing wrong?

Thank you!

cpustejovsky commented 1 year ago

I'm also on Ubuntu and my $GOPATH is set to /home/cpustejovsky/go

That may be your problem.

You can also use the make release command and then run ./bin/hey_linux_amd64

Then you could alias the path to that binary?

Anpilaot commented 1 year ago

Hey @cpustejovsky

Thanks for your help.

I downloaded in the past the hey_linux_amd64 file, but when I executed it didn't include the User-Agent update, which is what I'm looking for.

Is the make release command suppose to solve this issue?