-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
all: goimports -w . #14788
all: goimports -w . #14788
Conversation
23ca390
to
53e79b9
Compare
@@ -26,7 +26,7 @@ import ( | |||
"go.etcd.io/etcd/client/v3" | |||
integration2 "go.etcd.io/etcd/tests/v3/framework/integration" | |||
"go.etcd.io/etcd/tests/v3/framework/testutils" | |||
clientv3test "go.etcd.io/etcd/tests/v3/integration/clientv3" | |||
"go.etcd.io/etcd/tests/v3/integration/clientv3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's updated by goimports -w
automatically? Why did previous file add clientv3test
, while this file remove clientv3test
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goimports -w add this:
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
"go.etcd.io/etcd/client/pkg/v3/transport"
integration2 "go.etcd.io/etcd/tests/v3/framework/integration"
"go.etcd.io/etcd/tests/v3/framework/testutils"
"go.etcd.io/etcd/tests/v3/integration/clientv3"
clientv3test "go.etcd.io/etcd/tests/v3/integration/clientv3"
"google.golang.org/grpc"
Mb I remove changes in tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to keep
clientv3test "go.etcd.io/etcd/tests/v3/integration/clientv3"
And change in this file goes in the other direction. So it's why we are surprised.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
I add clientv3test "go.etcd.io/etcd/tests/v3/integration/clientv3"
myself and run goimports and all ok. Rerun goimports have no changes
Signed-off-by: Sasha Melentyev <sasha@melentyev.io>
53e79b9
to
c3b6cbd
Compare
Please add it to: as this change makes sense if we want to keep it consistent going forward. And the benefit of this change is that there is less 'surprise' that the |
After |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you @sashamelentyev
Please consider to resolve #14788 (comment) suggested by @ptabor , of course in a separate PR.
Signed-off-by: Sasha Melentyev sasha@melentyev.io