-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Run goimport for the whole repo #29230
Conversation
wow nice |
The gcfg change is wrong. See commit a073c80 which says Some of the transformations are still imperfect (usually around whitespace) but I think goimports won't fix that. |
@jfrazelle This should pass now |
GCE e2e build/test passed for commit c88a07c. |
Nice. Are we going to have update/verify scripts to keep imports clean? Thanks, |
we have a gofmt verifier. It could also run goimports.. hint.,.. On Tue, Aug 2, 2016 at 6:16 AM, Davanum Srinivas notifications@github.com
|
+1 for adding a script |
I also think a script would be nice, but sadly goimports doesn't understand dots in import names, so I had to hand-hack the generated output a bit. @dims But feel free to open an issue on the goimports side (or maybe fix it), and include it to update/verify-gofmt :) @jfrazelle Apply the label if this looks good :) |
@luxas aha! Can you leave me some notes on what you did and i can try to dig further when i get a chance. Thanks, |
added LGTM |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit c88a07c. |
Automatic merge from submit-queue |
While removing GOMAXPROC and running goimports, I noticed quite a lot of other files also needed a goimport format. Didn't commit
*.generated.go
,*.deepcopy.go
or files invendor
This is more for testing if it builds.
The only strange thing here is the gopkg.in/gcfg.v1 => github.com/scalingdata/gcfg replace.
cc @jfrazelle @thockin