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/third_party/go/repositories.bzl b/third_party/go/repositories.bzl
index 23d425b..ac1189f 100644
--- a/third_party/go/repositories.bzl
+++ b/third_party/go/repositories.bzl
@@ -2351,8 +2351,12 @@
go_repository(
name = "org_golang_x_tools",
importpath = "golang.org/x/tools",
- version = "v0.0.0-20201215171152-6307297f4651",
- sum = "h1:bdfqbHwYVvhLEIkESR524rqSsmV06Og3Fgz60LE7vZc=",
+ version = "v0.1.2-0.20210518182153-17b346669257",
+ sum = "h1:e7SbNJfMEurLnwdNnaP7LItYhtCPChdiq+j3RwB8YGY=",
+ patches = [
+ "//third_party/go/patches:goimports-group-merging.patch",
+ ],
+ patch_args = ["-p1"],
build_extra_args = [
"-go_naming_convention=go_default_library",
"-go_naming_convention_external=go_default_library",