-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/tools/cmd/gorename: Only work on current directory. #30456
Comments
I would like to reference Issue #10917 to show that we Devs have been asking for this feature since 2015. |
CC @ianthehat |
GOPATH mode is on its way out. |
Hi, @bcmills I think this issue should remain Open since Go Modules aren't that widespread yet and most Go Developers are still using classic projects. Until Go Modules becomes the norm, this issue will affect pretty much everyone not using Modules. |
There wouldn't be much point to that. Realistically, nobody is going to update |
@bcmills |
Currently, the gorename tool is working on the entire GOPATH directory. If your GOPATH contains lots of projects (including third-party libraries like ones from GitHub), it becomes so slow that it is next to unusable.
When developers rename something, they are usually only interested in code inside their current directory.
The proposed solution is to change gorename to only work on code inside the current directory. If this is not possible, then a flag, setting, or environment variable can be added to configure gorename to either work on the entire GOPATH or only on the current directory.
The text was updated successfully, but these errors were encountered: