Resolving dep ensure conflicts
Sometimes when collborating on a golang project, it is possible to get dependency conflicts after runningdep ensure.
The following is an approach I take to resolve them:
-
Run
dep ensure -vwith verbose to debug the issue. -
Delete the repo’s Gopkg.lock
-
Clear out the ~GOPATH/src/pkg directory
-
Re-run
dep ensure -v