-
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: tag and delete it #69360
Comments
Related Issues and Documentation (Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
Based on the discussion above, this proposal seems like a likely accept. The proposal is to tag one last version of x/tools/cmd/gorename (in its own sub-module) and then delete it from the repo. |
No change in consensus, so accepted. 🎉 The proposal is to tag one last version of x/tools/cmd/gorename (in its own sub-module) and then delete it from the repo. |
Change https://go.dev/cl/614158 mentions this issue: |
Change https://go.dev/cl/614159 mentions this issue: |
gorename is deprecated. (Use gopls's Rename RPC or rename command instead.) Once this module is tagged, we will delete it. Clients will be able to use only the last version. Updates golang/go#69360 Change-Id: I89ea5feade02f9fb15c7244847810f3c2261f7ff Reviewed-on: https://go-review.googlesource.com/c/tools/+/614158 Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Too bad I didn't include refactor/{rename,importgraph} in the current proposal; they will need another. Updates golang/go#69360 Change-Id: I8af544515893a0663621a19768adf64798c93671 Reviewed-on: https://go-review.googlesource.com/c/tools/+/614159 Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Change https://go.dev/cl/614635 mentions this issue: |
This makes it so that 'go install golang.org/x/tools/cmd/gorename@latest' will continue to work. ('go install pkg@version' does not allow replace directives.) Updates golang/go#69360 Change-Id: I46a16a5d8dc7d1d1cf6c428388484e27f266f4e2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/614635 Auto-Submit: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
Change https://go.dev/cl/614675 mentions this issue: |
The cmd/gorename tool long predates the LSP and gopls, and its functionality has since been subsumed by them. We should deprecate and delete the command, following the sequence used for go/pointer in #59676.
Example of using gopls as a batch renaming tool:
gopls doesn't support the symbolic command-line syntax for choosing the symbol to rename:
I wonder how many people actually use it, instead of specifying the symbol by position (e.g. byte offset 42 in the example above).
The text was updated successfully, but these errors were encountered: