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.
github.com/google/go-github/v20
github.
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.