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

specifying a different source package #22

Open
vikstrous2 opened this issue Jul 25, 2021 · 0 comments
Open

specifying a different source package #22

vikstrous2 opened this issue Jul 25, 2021 · 0 comments

Comments

@vikstrous2
Copy link

I haven't found a way to specify a different source package than the current one when invoking commands like mv A B. I'm working around this limitation by calling rf in a shell script that changes the working directory before invoking it. In a large codebase, each invocation of rf requires about 15-30 seconds to load everything before it does any refactoring. In my case, I wanted to rename structs in 130 packages and this took over an hour.

Example:

go.mod

module example.com/p

go 1.16

p.go

package p

var nothing string

a/a.go

package a

var A int

If I understand code addresses correctly, I would expect to be able to write something like this:

rf 'mv example.com/p/a:A A'
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