[英]How to get the specified version(tag) of package by using go get?
如何通过使用go get获取指定版本的软件包(标签)?
go get github.com/owner/repo
在上面的命令中,如何指定软件包的版本或标签。
Volker是正确的,但这是在项目中使用特定版本的一种方法:
go get github.com/sirupsen/logrus
cd $GOPATH/src/github.com/sirupsen/logrus
git checkout v0.9.0
cd $GOPATH/src/github.com/YOU/PROJECT
govendor add github.com/sirupsen/logrus # or similar
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.