You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ../)
The text was updated successfully, but these errors were encountered:
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
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 versionWhat did you see instead?
replacement module without version must be directory path (rooted or starting with ./ or ../)
The text was updated successfully, but these errors were encountered: