-
Notifications
You must be signed in to change notification settings - Fork 18k
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/goimports: doesn't traverse hidden files (dotfiles) #34100
Comments
/cc @bradfitz |
Clearly Is it so annoying to rename the directory to |
Well, it’s hard to change company-wide standards (I’m working at Uber). |
Sorry, this is not a configuration knob I want to add. Corporations with their own opinions can have their own internal goimports binary available to their employes. (Google does, for instance, for misc reasons) |
Alright, fair enough. In case anyone else has this or a similar issue, here is what I did to create a custom binary that works for me:
|
Sounds like this is resolved. Is there anything else you wanted to be done on this issue ? |
Nope, that’s all folks. |
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?
In a go project:
.gen/foo/foo.go
with contents:bar/bar.go
with contents:main.go
with contents:goimports main.go
.What did you expect to see?
Both
foo
andbar
packages includedWhat did you see instead?
Only
bar
package was includedIt would be great if goimports traverses hidden directories as we use a
.gen
folder for storing auto-generated code (e.g. protobuf). Or at least to export a flag that enables this feature.From a little tweaking, it seems that Intellij and GoLand already support this feature and that doesn't come from the integrated
goimports
.NOTE: If I add the import manually, the program compiles.
The text was updated successfully, but these errors were encountered: