-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
proposal: x/tools/cmd/goimports: ability to exclude specific directory, like vendor #54706
Comments
CC @golang/tools-team |
This proposal has been added to the active column of the proposals project |
Based on the discussion above, this proposal seems like a likely decline. |
@rsc why it is likely declined brother? what kind of negative consequences that tiny feature could have? |
@bilalcaliskan See the issues mentioned above as duplicates. |
I ve missed the duplicated issues so sorry for trouble. Closing that duplicate right now. Cheers! |
This proposal has been declined as retracted. |
I believe we need some way of ignoring
|
Currently as i know, goimports dont have an option to exclude specific directory so i am excluding vendor directory on my personal projects like below:
for item in $(find . -type f -name '*.go' -not -path './vendor/*'); do goimports -l -w $item; done
it is a little bit uggly i guess, so i and i think lots of gophers like me will be glad if that option is supported by goimports.
The text was updated successfully, but these errors were encountered: