dongmu2517 2018-10-09 03:31
浏览 275

更新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 09: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.

    评论
    编辑
    预览

    报告相同问题?

    手机看
    程序员都在用的中文IT技术交流社区

    程序员都在用的中文IT技术交流社区

    专业的中文 IT 技术社区,与千万技术人共成长

    专业的中文 IT 技术社区,与千万技术人共成长

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    客服 返回
    顶部