Script that fixes all goimports.

Signed-off-by: Piotr Tabor <ptab@google.com>
pull/361/head
Piotr Tabor 2022-12-28 16:44:16 +01:00
parent 9a6782574d
commit cec7209fa8
1 changed files with 3 additions and 0 deletions

3
scripts/fix.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
go list --f '{{with $d:=.}}{{range .GoFiles}}{{$d.Dir}}/{{.}}{{"\n"}}{{end}}{{end}}' ./... | xargs go run golang.org/x/tools/cmd/goimports@latest -w -local go.etcd.io