执行此任务的最佳实践是什么?
到目前为止,我所尝试的只是运行抛出以下错误的命令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应该能够执行此任务?Iw'e尝试了各种技巧来使其正常工作,例如,手动修改Gopk.lock文件,删除vendor文件夹中的azure-sdk-for-go文件夹,但到目前为止我还没有运气。在这方面的任何帮助都将非常感谢。
发布于 2018-11-07 01:15:42
看起来你的更新来自一个相当老的版本,因为github.com/Azure/azure-sdk-for-go/arm/compute已经被弃用并在一年前被移除,而这个SDK还处于预览阶段。
要继续操作,您应该将计算路径更新为github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute。从那时起,还将有其他几个突破性的变化需要采用。
https://stackoverflow.com/questions/52720047
复制相似问题