Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

dep ensure --add fails with path #1615

Closed
MuthukumarHelios opened this issue Feb 2, 2018 · 1 comment
Closed

dep ensure --add fails with path #1615

MuthukumarHelios opened this issue Feb 2, 2018 · 1 comment

Comments

@MuthukumarHelios
Copy link

MuthukumarHelios commented Feb 2, 2018

` dep:

version : devel
build date :
git hash :
go version : go1.9.2
go compiler : gc
platform : linux/amd64`

---Case 1:

My Command
dep ensure
Error

/home/user/trans/NSDC/Server/src/certificationservice is not within a known GOPATH/src

My ~/.bashrc

export GOPATH=$HOME/go/src/github.com/user:$HOME/trans/NSDC/Server:$HOME/projects/golang/mvc:$HOME/projects/smart/feedback_app:$HOME/projects/golang/stack:$HOME/projects/openSource

GOPATH="/home/user/go"
---Case 2
i tried using dep in my Inbuild Go path Where my Golang is installed

/home/user/go/src/test_app$ dep init
Output
Gopkg.lock Gopkg.toml vendor
working fine

#911

I expect to see below

Gopkg.lock Gopkg.toml vendor

I see instead Below

$dep ensure
$dep ensure -add go get github.com/user/package

/home/user/trans/NSDC/Server/src/certificationservice is not within a known GOPATH/src
@MuthukumarHelios
Copy link
Author

I am not sure Why this issue is coming I have already Installed See gvm

I Uninstall the gvm and Commented the Below .bashrc file

 [[ -s "/home/user/.gvm/scripts/gvm" ]] && source "/home/user/.gvm/scripts/gvm"

My Issue get's Fixed after Running

source ~/.bashrc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant