tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.5k stars 1.36k forks source link

can't load package: package github.com/tsenart/vegeta: import "github.com/tsenart/vegeta": cannot find package #1

Closed tj closed 11 years ago

tj commented 11 years ago

is my go too old maybe? 1.0.3

tsenart commented 11 years ago

Hey there. Are you trying to use it as a library by importing it or are you trying to install the cli? If you're using it as a library have a look at the example in the README: https://github.com/tsenart/vegeta#usage-library

tsenart commented 11 years ago

I had a missing statement in the install instructions. Before go install we need go get. Thanks for reporting :)

tj commented 11 years ago

Just the CLI for me, I'm getting:

go get github.com/tsenart/vegeta
# cd .; hg clone -U https://code.google.com/p/plotinum /Users/tj/.go/src/code.google.com/p/plotinum
package code.google.com/p/plotinum/plot: exec: "hg": executable file not found in $PATH
package code.google.com/p/plotinum/plotter
    imports code.google.com/p/plotinum/plotter

tried the git urls to see if that'd stop confusing go but nope:

$ go get https://github.com/tsenart/vegeta.git
package https:/github.com/tsenart/vegeta.git: unrecognized import path "https:/github.com/tsenart/vegeta.git"
tsenart commented 11 years ago

The go toolset uses git, hg and svn underlying. It seems like you don't have hg (Mercurial) installed or available in your $PATH.

tj commented 11 years ago

oh wtf, you need mercurial to install git related packages?

tj commented 11 years ago

oh i see it has to bootstrap some stuff, cool working now thanks!

tj commented 11 years ago

go hates me haha:

go get github.com/tsenart/vegeta
# github.com/tsenart/vegeta/lib
../../.go/src/github.com/tsenart/vegeta/lib/timings_plot_reporter.go:4: import /Users/tj/.go/pkg/darwin_386/code.google.com/p/plotinum/plot.a: not a package file
tsenart commented 11 years ago

Oh man you have your go installation messed up somehow. I added pre-compiled binaries for these cases. https://github.com/tsenart/vegeta#pre-compiled-executables

tj commented 11 years ago

haha success! I had just installed 1.1.2, seems pretty finicky, but the bin is working sorry about that!

ianrussel commented 6 years ago

Oh @tj the Express js creator