简体   繁体   中英

Dep Ensure Doing Nothing Just Loading

I have a problem with dep

When i add some dependency for example github.com/jmoiron/sqlx this dependency, I have to wait very long, then it just doing nothing, only showing message "Fetching Sources"

I've been waiting for 5 mins and it's not doing anything

PS: this one still brand new project

go version go1.11.2 darwin/amd64

dep version 0.50

OS MacOS High Sierra

Any suggestion?

Finally i got it work by reinstalling dep

Remove Gopkg.toml , Gopkg.lock , & vendor and re-do dep init again

Remove file from $GOPATH/pkg/dep & $GOPATH/pkg/bin/dep

Just erase everything about dep.

I Don't know what happen but it works for me

Just make sure you do the dep inside $GOPATH folder

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM