go - How to add dependency to godep.json? -
i'm having hard time add dependency godeps.json
file. think i've messed gopath
. tried various suggestions on warnings none of them worked me. gopath /users/sarath/project
. which go
/usr/local/bin/go
. if try godep save ./...
, giving me following warning:
godep: [warning]: godep should used inside valid go package directory , godep: [warning]: may not function correctly. outside of $gopath. godep: [warning]: current directory: /users/sarath/project godep: [warning]: $gopath: /users/sarath/project godep: unable find srcroot package .
i have pkg
inside /users/sarath/project
.
that won't work. gopath isn't path of project; it's root of directory, contains bin
, pkg
, , src
directories; src
directory contains package-named directories projects. should running godep
project directory, (given current gopath) should /users/sarath/project/src/<repopath>
- e.g. /users/sarath/project/src/github.com/sarath/myproject
.
Comments
Post a Comment