dongmu2517 2018-10-09 11:31
浏览 273

更新azure-sdk-for-go库依赖项

What is the best practice to carry out this task?

What I tried so far, simply run command dep ensure -update github.com/Azure/azure-sdk-for-go that threw the following error:

    Warning: the following project(s) have [[constraint]] stanzas in Gopkg.toml:

  ✗  github.com/gravitational/trace
  .....

dep ensure gives me similar error as dep -update command. dep check gives following output:

# 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
.....

and

# 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
....

This is a rather large project. Should I manually remove all existing dependencies in the code to the old import azure-sdk-for-go? or should deb be able to carry out this task? Iw'e tried various hacks to get this working, like for instance, manually modifying the Gopk.lock file, deleting the azure-sdk-for-go folder in the vendor folder, but so far I had no luck. Any help on this would be much appreciated.

  • 写回答

1条回答 默认 最新

  • doujiang1001 2018-11-06 17:15
    关注

    Looks like your updating from a quite old version, since github.com/Azure/azure-sdk-for-go/arm/compute has been deprecated and removed almost a year ago while this SDK was still in preview.

    To move forward, you should update your compute path to github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute. There will be several other breaking changes to adopt since then as well.

    评论

报告相同问题?

悬赏问题

  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥20 为什么我写出来的绘图程序是这样的,有没有lao哥改一下
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥200 关于#c++#的问题,请各位专家解答!网站的邀请码
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号