Dep init failed: unable to solve the dependency graph

How to Solve Dep Init dependency graph Error while working with Go dependency management tool https://golang.github.io/dep/

init failed: unable to solve the dependency graph: Solving failure: no valid source could be created

Go To This Path :  $GOPATH/pkg/dep/sources/

(Get your GoPath from ‘go env’)

See Repos with name like https—go

E.g.

https—github.com-golang-protobuf

https—github.com-opencontainers-runc
https—github.com-Azure-go–ansiterm

Check which repo giving the mess, and then sort that out e.g. delete that repo or something messed up with any one of the repo like checked in useless

One thought on “Dep init failed: unable to solve the dependency graph

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s