安装dbweb时没有远程仓库。

huangapple go评论97阅读模式
英文:

no remote repository when installing dbweb

问题

我想安装dbweb来管理一个MySQL数据库服务器,但是在命令提示符中出现了这个错误。
我尝试在我的Go项目中安装它,但是得到了相同的错误。

C:\Users\NakhodaSokoot>go get github.com/go-xorm/dbweb
# cd C:\Users\NakhodaSokoot\go\src\github.com\lunny\nodb; git pull --ff-only
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.
package github.com/lunny/nodb/config: exit status 1
# cd C:\Users\NakhodaSokoot\go\src\golang.org\x\crypto; git pull --ff-only
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.
package golang.org/x/crypto/scrypt: exit status 1
英文:

I want to install dbweb to manage a MySQL database server but I get this error in cmd.
I tried to to install that on my go project and get same error.

C:\Users\NakhodaSokoot>go get github.com/go-xorm/dbweb
# cd C:\Users\NakhodaSokoot\go\src\github.com\lunny\nodb; git pull --ff-only
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.
package github.com/lunny/nodb/config: exit status 1
# cd C:\Users\NakhodaSokoot\go\src\golang.org\x\crypto; git pull --ff-only
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.
package golang.org/x/crypto/scrypt: exit status 1

答案1

得分: 2

这些错误是因为github.com/go-xorm/dbweb依赖于这两个包,但它无法更新这两个包,因为你在本地拥有它们,但它们没有远程仓库,所以go get不知道从哪里获取代码。

尝试删除它们:

$ rm -rf $GOPATH\src\github.com\lunny\nodb
$ rm -rf $GOPATH\src\golang.org\x\crypto

然后再次尝试获取你的包:

$ go get -u github.com/go-xorm/dbweb

或者分别获取它们,然后再获取dbweb:

$ go get -u golang.org\x\crypto
$ go get -u github.com\lunny\nodb
$ go get -u github.com/go-xorm/dbweb
英文:

It gives those errors because github.com/go-xorm/dbweb has dependencies on those other two packages which it cannot update because you have them locally but they have no remote so go get does not know from where to pull the code.

Try removing them:

$ rm -rf $GOPATH\src\github.com\lunny\nodb
$ rm -rf $GOPATH\src\golang.org\x\crypto

Then try to go get your package again:

$ go get -u github.com/go-xorm/dbweb

Or go get them separately and then go get dbweb:

$ go get -u golang.org\x\crypto
$ go get -u github.com\lunny\nodb
$ go get -u github.com/go-xorm/dbweb

huangapple
  • 本文由 发表于 2017年4月12日 19:05:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/43367802.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定