执行此任务的最佳做法是什么?
到目前为止我尝试了什么,只需运行dep ensure -update github.com/Azure/azure-sdk-for-go
引发以下错误的命令:
Warning: the following project(s) have [[constraint]] stanzas in Gopkg.toml:
✗ github.com/gravitational/trace
.....
dep ensure
dep -update
给了我与命令类似的错误。dep check
给出以下输出:
# Gopkg.lock is out of sync:
github.com/Azure/azure-sdk-for-go/arm/compute: imported or required, but missing from Gopkg.lock's input-imports
.....
和
# vendor is out of sync:
cloud.google.com/go: no digest in Gopkg.lock to compare against hash of vendored tree
github.com/Azure/azure-sdk-for-go: no digest in Gopkg.lock to compare against hash of vendored tree
....
这是一个相当大的项目。我应该手动将代码中的所有现有依赖项删除到旧的import azure-sdk-for-go
吗?或者应该deb
能够执行这个任务?我尝试了各种技巧来使其正常工作,例如手动修改Gopk.lock
文件,删除azure-sdk-for-go
文件夹中的vendor
文件夹,但到目前为止我没有运气。对此的任何帮助将不胜感激。