以本模块为例(使用特定的提交,以便其他人看到)
git clone git://github.com/walles/moar
Set-Location moar
git checkout d24acdbf
我想用一种方式告诉GOgo "更新一切".假设该模块
将与最新版本的一切兼容.下面是我发现的五种方法
执行此操作时,假设每个都在干净的克隆上运行.这导致了19分中的go.mod
分
线路:
go get -u
这会产生go.mod
行(共14行):
go get -u
go mod tidy
这将导致13行中的go.mod
行:
go mod tidy
如果我只是手动删除require
中的所有内容,然后运行go mod tidy
,那么