-
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: creates a pkg/mod
inside $GOPATH
#34222
Comments
same story |
pkg/mod
inside $GOPATH
pkg/mod
inside $GOPATH
I believe that gorename might have some issues in module mode: #27571, #24661. You may have better luck by setting /cc @stamblerre @ianthehat who may have more context |
@toothrot Good tip. Setting |
|
Thanks for the tip @stamblerre |
As discussed in the vscode-go issue linked above, it seems like |
Please add support for use with modules. |
closing as obsoleted by #69360 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
From inside the gorename -from "github.com/lighstep.$PACAKGE"::symbol --to symbol2
What did you expect to see?
The symbol to be renamed without error.
What did you see instead?
A very long list of errors involving searching for modules that are already in
vendor/
as well as a large number of packages installed to $GOPATH/pkg/mod even though there is no go.mod in this codebase.Errors:
Before running gorename, there was no
pkg/mod
directory.The text was updated successfully, but these errors were encountered: