third_party: replace jq with gojq

Building jq portably is annoying, and the way we were doing it (which we
iirc stole from some google project?) sucked. Let's use a Go jq clone
instead.

This is an alternative for 1535. jq is currently used only in one
script, which could really be replaced by a Go program, but let's keep
it simple for now.

Change-Id: Ie25dffadd545df143490f510e9b75a74adf81492
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1540
Reviewed-by: palid <palid@hackerspace.pl>
diff --git a/third_party/go/repositories.bzl b/third_party/go/repositories.bzl
index aadb84a..3c8d789 100644
--- a/third_party/go/repositories.bzl
+++ b/third_party/go/repositories.bzl
@@ -824,12 +824,6 @@
         sum = "h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=",
         version = "v1.4.9",
     )
-    go_repository(
-        name = "ml_vbom_util",
-        importpath = "github.com/fvbommel/util",
-        sum = "h1:/uQiVCCb9QGbBGf51tcx2D6Poi+Op2UpU+6qGP5nEdk=",
-        version = "v0.0.3",
-    )
 
     go_repository(
         name = "com_github_gabriel_vasile_mimetype",
@@ -1446,6 +1440,21 @@
     )
 
     go_repository(
+        name = "com_github_itchyny_gojq",
+        build_naming_convention = "go_default_library",
+        importpath = "github.com/itchyny/gojq",
+        sum = "h1:IxyYlHYIlspQHHTE0f3cJF0NKDMfajxViuhBLnHd/QU=",
+        version = "v0.12.13",
+    )
+
+    go_repository(
+        name = "com_github_itchyny_timefmt_go",
+        build_naming_convention = "go_default_library",
+        importpath = "github.com/itchyny/timefmt-go",
+        sum = "h1:G0INE2la8S6ru/ZI5JecgyzbbJNs5lG1RcBqa7Jm6GE=",
+        version = "v0.1.5",
+    )
+    go_repository(
         name = "com_github_jackc_pgx",
         commit = "6954c15ad0bd3c9aa6dd1b190732b020379beb28",
         importpath = "github.com/jackc/pgx",
@@ -3036,6 +3045,12 @@
         sum = "h1:k1MczvYDUvJBe93bYd7wrZLLUEcLZAuF824/I4e5Xr4=",
         version = "v0.1.1",
     )
+    go_repository(
+        name = "ml_vbom_util",
+        importpath = "github.com/fvbommel/util",
+        sum = "h1:/uQiVCCb9QGbBGf51tcx2D6Poi+Op2UpU+6qGP5nEdk=",
+        version = "v0.0.3",
+    )
 
     go_repository(
         name = "ml_vbom_util_sortorder",
@@ -3330,6 +3345,7 @@
     )
     go_repository(
         name = "tools_gotest_v3",
+        build_naming_convention = "go_default_library",
         importpath = "gotest.tools/v3",
         replace = "gotest.tools/v3",
         sum = "h1:kG1BFyqVHuQoVQiR1bWGnfz/fmHvvuiSPIV7rvl360E=",