x/tools/cmd/gorename: creates a pkg/mod
inside $GOPATH
#34222
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
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$GOPATH run `$ 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: