x/tools/refactor/eg: Using ./...
only matches one file even though there are many more
#70414
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
Go version
go version go1.23.3 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I have a template looks approximately like this in abstract:
I'm attempting to run
eg -w -t template.go github.com/myRepo/...
to replace all usages in this module.What did you see happen?
When I run
eg -w -t template.go ./...
from the root ofgithub.com/myRepo
, I notice that only one usage gets replaced although there are many, many more in packages matched by this pattern. If I runeg -w -t template.go github.com/myRepo/x/internal/some/other/pkg
, where this package contains a lot of call sites of the old function, then all of the matches appear and get replaced.Maybe not relevant, but I noticed that for some specific packages that would be included in
github.com/myRepo/...
, there are errors that occur when runningeg
.What did you expect to see?
All call sites within the list of packages matched by
github.com/myRepo/...
to be replaced.The text was updated successfully, but these errors were encountered: