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

affected/package: cmd/go allow renaming a module without replacing all import paths #59766

Closed
krasi-georgiev opened this issue Apr 21, 2023 · 1 comment

Comments

@krasi-georgiev
Copy link

krasi-georgiev commented Apr 21, 2023

$ go version
go version go1.20.2 linux/arm64

What did you do?

trying to rename a module without replacing the import paths
this is a huge project and a global search and replace is not feasible.

What did you expect to see?

to be able to use replace directive
replace github.com/repo/name => github.com/repo-new/name-new

when the module name is github.com/repo-new/name-new and it has the replace directive above it should just use its own packages and shouldn't require a version

What did you see instead?

replacement module without version must be directory path (rooted or starting with ./ or ../)

@krasi-georgiev krasi-georgiev changed the title affected/package: go/mod affected/package: cmd/go allow renaming a module without replacing all import paths Apr 21, 2023
@seankhliao
Copy link
Member

Duplicate of #34417

@seankhliao seankhliao marked this as a duplicate of #34417 Apr 21, 2023
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2023
@golang golang locked and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants