英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论