third_party: goimports: apply import grouping patch
This allows developers to build //:goimports and point their IDE/editor
to it to easily conform to the import style guide.
We also document how to run this tool in CODING_STANDARDS.md.
Integration with IntelliJ is TBD.
Change-Id: I61e412162e51e513ec5888eda5221c9d145b6454
Reviewed-on: https://review.monogon.dev/c/monogon/+/493
Reviewed-by: Leopold Schabel <leo@nexantic.com>
diff --git a/build/fietsje/deps_monogon.go b/build/fietsje/deps_monogon.go
index a584f19..2869722 100644
--- a/build/fietsje/deps_monogon.go
+++ b/build/fietsje/deps_monogon.go
@@ -112,8 +112,9 @@
"github.com/opentracing/opentracing-go",
)
- // goimports
- p.collectOverride("golang.org/x/tools", "v0.0.0-20201215171152-6307297f4651")
+ // goimports with import grouping patch
+ // https://go-review.googlesource.com/c/tools/+/321409/
+ p.collectOverride("golang.org/x/tools", "v0.1.2-0.20210518182153-17b346669257", patches("goimports-group-merging.patch"))
// commentwrap is used as a nogo analyzer to stick to a maximum line
// length for comments.