tools / godep

dependency tool for go
http://godoc.org/github.com/tools/godep
BSD 3-Clause "New" or "Revised" License
5.55k stars 455 forks source link

Changed git provider. Most vendor packages are still using the old git link #561

Open kerubkim opened 6 years ago

kerubkim commented 6 years ago

Hi,

My employer recently switched git provider, from bitbucket to github. There was also a different developer working on this project. I noticed he used Godeps. I am wondering if this package could help me change all the package imports/links to github instead of bitbucket.

Note: I am fairly new with goLang.

Thank you!

Expected behavior

Need go install to look for 'github.com/accountName/repoName/folderName' instead of 'bitbucket.org/accountName/repoName/folderName'.

Actual behavior

After 'go clone' from github. Did 'go install'. I am receiving '.... cannot find package "bitbucket.org/accountName/repoName/folderName" in any of:' /Users/myName/golang/src/github.com/accountName/repoName/vendor/bitbucket.org/accountName/repoName/folderName (vendor tree) /usr/local/go/src/bitbucket.org/accountName/repoName/folderName (from $GOROOT) /Users/myName/golang/src/bitbucket.org/accountName/repoName/folderName (from $GOPATH)

Steps to reproduce behavior

Private repo. Please excuse the privacy.

godep version output

I have not installed godep myself.

go version output

go version go1.10.3 darwin/amd64

Contents of Godeps.json file

{ "ImportPath": "bitbucket.org/accountName/repoName", "GoVersion": "go1.7", "GodepVersion": "v79", "Deps": [ ... ], }