您可能正在查找go get -u github.com/yourcommonproject。从go help get:
The -u flag instructs get to update modules providing dependencies
of packages named on the command line to use newer minor or patch
releases when available.
-x标志在调试时可能也很有用:
The -x flag prints commands as they are executed. This is useful for
debugging version control commands when a module is downloaded directly
from a repository.
2条答案
按热度按时间0s0u357o1#
你可以像这样从特定的分支导入包
afdcj2ne2#
您可能正在查找
go get -u github.com/yourcommonproject
。从go help get
:-x
标志在调试时可能也很有用:有用的相关链接:
https://golang.cafe/blog/how-to-upgrade-golang-dependencies.html
https://go.dev/doc/modules/managing-dependencies