I am new to Go, and I have been working on a Go project locally. I have installed Godep in my local system by:
go get github.com/tools/godep
and then installed Aerospike dependency
go get -u github.com/aerospike/aerospike-client-go
However $GOPATH/bin/godep save ./...
gives me following error:-
godep: [WARNING]: godep should only be used inside a valid go package directory and
godep: [WARNING]: may not function correctly. You are probably outside of your $GOPATH.
godep: [WARNING]: Current Directory: /Users/XYZ/go_code/labs-audience
godep: [WARNING]: $GOPATH: /Users/XYZ/go_code
godep: WARNING: Godep workspaces (./Godeps/_workspace) are deprecated and support for them will be removed when go1.8 is released.
godep: WARNING: Go version (go1.6) & $GO15VENDOREXPERIMENT= wants to enable the vendor experiment, but disabling because a Godep workspace (Godeps/_workspace) exists
godep: WARNING: Recorded major go version (go1.5) and in-use major go version (go1.6) differ.
godep: To record current major go version run `godep update -goversion`.
It truncates my Godeps/Godeps.json
and Godeps/_workspace/
directory. Please not that I am not panning to upgrade project Go version to 1.6. What wrong am I doing?
Note:
- $PROJECT_PATH: $GOPATH/project/
- All the commands are being run in $PROJECT_PATH