Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find packge in $GOPATH and $GOROOT #290

Open
Anpilaot opened this issue Nov 30, 2022 · 2 comments
Open

Cannot find packge in $GOPATH and $GOROOT #290

Anpilaot opened this issue Nov 30, 2022 · 2 comments

Comments

@Anpilaot
Copy link

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
Copy link

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
Copy link
Author

Anpilaot commented Dec 1, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants