Make error on 'dep ensure' Go Dependency Management tool
SOLUTION `brew install dep` before you run `make get_tools && make get_vendor_deps && make install` per these instructions PROBLEM Follow these instructions… Cosmos Network Cosmos Network - Internet of Blockchains The interoperable, scalable blockchain network. Built for developers. error `make get_tools && make get_vendor_deps && make install` is erroring, I think its from this line: github.com cosmos/cosmos-sdk/blob/v0.19.0/Makefile#L71 ``` update_tools: cd tools && $(MAKE) update_tools get_tools: cd tools && $(MAKE) get_tools get_vendor_deps: @rm -rf vendor/ @echo "--> Running dep ensure" @dep ensure -v draw_deps: @# requires brew install graphviz or apt-get install graphviz go get github.com/RobotsAndPencils/goviz @goviz -i github.com/cosmos/cosmos-sdk/cmd/gaia/cmd/gaiad -d 2 | dot -Tpng -o dependency-graph.png ######################################## ### Documentation ``` ``` get_vendor_deps: @rm -rf vendor/ @echo "--> Running dep ensure" @dep ensure -v // #L71 ``` Here’s what happened… ``` make get_tools && make get_vendor_deps && make install cd tools &&…
Excerpt (1193 of 5849 characters). Read the whole post on the forum ↗
It looks like $GOPATH/bin is not in your PATH which is why the make command fails for you.
was dep inside of $GOPATH/bin/dep the entire time? I wonder if that’s where the Makefile was looking for dep, and maybe by installing brew install dep it was somehow work-around fixing it.
my $PATH from my .zshrc was
# GOLANG
export GOPATH=$HOME/go
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:/usr/local/opt/go/libexec/bin
export PATH=$PATH:/usr/local/Cellar/go/1.10.3
export GOBIN=$GOPATH/bin
so maybe I should add:
export PATH=$PATH:GOBIN to this? might have been missing. I think i was cross-reading too many go installation tutorials at once and confused some things.
Yes that’s that’s where go install puts things.