go get获取的包为什么不是最新版本

比如我用命名
go get github.com/kataras/iris
获取的是11.1.1版本,但是最新的是12.1.8版本,这是为什么

阅读 9.3k
2 个回答

有一个 -u 的参数附上

新手上路,请多包涵

go help get

The -u flag instructs get to use the network to update the named packages
and their dependencies. By default, get uses the network to check out
missing packages but does not use it to look for updates to existing packages.
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题