jaxxstorm / hookpick

A tool to manage some operational concepts of Hashicorp Vault
MIT License
84 stars 14 forks source link

cannot find package "github.com/jaxxstorm/hookpick/cmd" #20

Closed emcniece closed 6 years ago

emcniece commented 6 years ago

Hey, just trying to build & test this neat looking tool! Following the README and got stuck at the build step:

cd $GOPATH/src
git clone https://github.com/jaxxstorm/hookpick.git
cd hookpick
curl https://glide.sh/get | sh
glide
go build -o hookpick main.go

    main.go:23:8: cannot find package "github.com/jaxxstorm/hookpick/cmd" in any of:
    [GOPATH]/src/hookpick/vendor/github.com/jaxxstorm/hookpick/cmd (vendor tree)
    [GOROOT]/src/github.com/jaxxstorm/hookpick/cmd (from $GOROOT)
    [GOPATH]/src/github.com/jaxxstorm/hookpick/cmd (from $GOPATH)

This is because main.go imports github.com/jaxxstorm/hookpick/cmd and not ./cmd, right? Should I be building with a different command?

Side note, make build fails too because I don't have goxc installed, this will be the next issue to solve.

jaxxstorm commented 6 years ago

It's because your git clone isn't right. Try this:

mkdir -p $GOPATH/src/github.com/jaxxstorm
cd $GOPATH/src/github.com/jaxxstorm
git clone https://github.com/jaxxstorm/hookpick.git

and go from there

jaxxstorm commented 6 years ago

I opened #21 to fix the goxc thing, bear with me

emcniece commented 6 years ago

No sweat dude - thanks for the fast response!

Directory moving worked like a charm, thanks so much 🎉