You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for package pattern in "go tool". If the argument to "go tool" is detected as a pattern, match the pattern against the declared tools in go.mod.
Rationale
go get -tool . works. go run . works.
But go tool . doesn't work: go: no such tool "."
go tool . should work too, like go tool $(go list .) go get -tool ./internal/mytool && go tool ./internal/mytool should work too, like go get -tool ./internal/mytool && go tool $(go list ./internal/mytool)