When I run godep save ./...
from the root directory of the project I'm getting the following error. Any clues what might I have to fix?
godep: Unable to find SrcRoot for package .
When I run godep save ./...
from the root directory of the project I'm getting the following error. Any clues what might I have to fix?
godep: Unable to find SrcRoot for package .
Filesystem location matters a lot in Go. You’re expected to be running things from a designated ‘gopath’, but don’t confuse gopath with the location of go (don’t just set it to where go is installed).
Your gopath should be a location that you’re happy to put your go source code for the foreseeable future. I’ve set mine to /Users/ejiro/go.
cat <<END >> ~/.bashrc
export GOPATH=/Users/ejiro/go
END