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
cmd/go/internal/fmtcmd: support format files in multiple directories #45627
Comments
Change https://golang.org/cl/311249 mentions this issue: |
1 similar comment
Change https://golang.org/cl/311249 mentions this issue: |
In general the arguments to
In theory |
@ianwoolf, is there a particular use-case that cannot be handled without this? Otherwise, I don't think it's worth the extra complexity of deviating from the patterns accepted by the other |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
the function
go/internal/load.PackagesAndErrors
only support the files with all patterns referring to either:So
go fmt
do not support files in multiple directories, a command likego fmt a/a.go b/b.go
will get an error msgnamed files must all be in one directory; have....
.But
go fmt
support mulitple pkg, e.g:go fmt a/ b/
.It seems that files in multiple directories should be supported.
What did you expect to see?
could
go fmt
files in muliple directories. such as:go fmt a/a.go b/b.go
What did you see instead?
get error msg like
named files must all be in one directory; have....
The text was updated successfully, but these errors were encountered: