如何获取Ubuntu Launchpad/Bazaar软件包?

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

How to go get ubuntu launchpad/bazaar packages?

问题

我正在尝试访问http://bazaar.launchpad.net/~ubuntu-push-hackers/ubuntu-push/trunk/view/head:/bus/networkmanager。

我尝试过以下方式:
go get bazaar.launchpad.net/~ubuntu-push-hackers/ubuntu-push/bus/networkmanager

package bazaar.launchpad.net/~ubuntu-push-hackers/ubuntu-push/bus/networkmanager: 无法识别的导入路径 "bazaar.launchpad.net/~ubuntu-push-hackers/ubuntu-push/bus/networkmanager"

go get bazaar.launchpad.net/ubuntu-push-hackers/ubuntu-push/bus/networkmanager

与上述结果相同

go get launchpad.net/ubuntu-push-hackers/ubuntu-push/bus/networkmanager

cd .; bzr branch https://launchpad.net/ubuntu-push-hackers /root/go/src/launchpad.net/ubuntu-push-hackers

bzr: ERROR: Not a branch: "https://launchpad.net/ubuntu-push-hackers/".
package launchpad.net/ubuntu-push-hackers/ubuntu-push/bus/networkmanager: 退出状态 3

英文:

I'm trying to go get http://bazaar.launchpad.net/~ubuntu-push-hackers/ubuntu-push/trunk/view/head:/bus/networkmanager

I've tried :
go get bazaar.launchpad.net/~ubuntu-push-hackers/ubuntu-push/bus/networkmanager

package bazaar.launchpad.net/~ubuntu-push-hackers/ubuntu-push/bus/networkmanager: unrecognized import path "bazaar.launchpad.net/~ubuntu-push-hackers/ubuntu-push/bus/networkmanager"

go get bazaar.launchpad.net/ubuntu-push-hackers/ubuntu-push/bus/networkmanager

Same result as above

go get launchpad.net/ubuntu-push-hackers/ubuntu-push/bus/networkmanager

# cd .; bzr branch https://launchpad.net/ubuntu-push-hackers /root/go/src/launchpad.net/ubuntu-push-hackers
bzr: ERROR: Not a branch: "https://launchpad.net/ubuntu-push-hackers/".
package launchpad.net/ubuntu-push-hackers/ubuntu-push/bus/networkmanager: exit status 3

答案1

得分: 0

使用go get命令时,您是在处理软件包,而不是Git引用或文件系统路径。

请尝试执行以下命令:

go get launchpad.net/ubuntu-push
英文:

With go get you work on packages and not on git refs or file system paths.

Try

go get launchpad.net/ubuntu-push

huangapple
  • 本文由 发表于 2015年7月3日 16:25:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/31202028.html
匿名

发表评论

匿名网友

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

确定