Update go module import references after major dependency update

前端 未结 2 1493
长发绾君心
长发绾君心 2021-01-20 19:31

Scenario: I need to update a third party Go Module to a new major version across a repository.

Example: github.com/google/go-github/v20 to github.

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-20 19:58

    As a new major version indicates breaking compatibility you will have to fix your code manually anyway: Updating the import path in case of a new major version is your least concern to automate.

提交回复
热议问题