Skip to content

Feature: Automatically adapt to module path changes. #152

@nao1215

Description

@nao1215

Is your feature request related to a problem?

When transitioning from individually developed OSS to an Organization, the module paths may change. In such cases, gup may display the following error.

gup:ERROR: [28/89] air can't install github.com/cosmtrek/air:
go: downloading github.com/cosmtrek/air v1.52.2
go: github.com/cosmtrek/air@latest: version constraints conflict:
	github.com/cosmtrek/[email protected]: parsing go.mod:
	module declares its path as: github.com/air-verse/air
	        but was required as: github.com/cosmtrek/air

If the above error occurs, users will need to delete the old binaries and manually install the binaries with the new module paths. The new feature added to gup automates this process.

Describe the solution you'd like

If gup detects a change in the module path, it will delete the binary of the old module path and install the binary in the new module path.

Describe alternatives you've considered

No idea.

Additional context

We need to consider dry run and check sub command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions