Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Automatically adapt to module path changes. #152

Open
nao1215 opened this issue Jun 5, 2024 · 0 comments
Open

Feature: Automatically adapt to module path changes. #152

nao1215 opened this issue Jun 5, 2024 · 0 comments

Comments

@nao1215
Copy link
Owner

nao1215 commented Jun 5, 2024

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/air@v1.52.2: 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant