[英]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.