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/cluster/tools/BUILD b/cluster/tools/BUILD
index 9ec0d6c..f28be36 100644
--- a/cluster/tools/BUILD
+++ b/cluster/tools/BUILD
@@ -39,7 +39,7 @@
srcs = ["rook-s3cmd-config.sh"],
data = [
"@bazel_tools//tools/bash/runfiles",
- "@com_github_stedolan_jq//:jq",
+ "@com_github_itchyny_gojq//cmd/gojq",
":kubectl",
],
)
diff --git a/cluster/tools/rook-s3cmd-config.sh b/cluster/tools/rook-s3cmd-config.sh
index 703b597..1f8d94b 100755
--- a/cluster/tools/rook-s3cmd-config.sh
+++ b/cluster/tools/rook-s3cmd-config.sh
@@ -36,7 +36,7 @@
exit 1
fi
-jq=$(rlocation "com_github_stedolan_jq/jq")
+jq=$(rlocation "com_github_itchyny_gojq/cmd/gojq/gojq_/gojq")
if [ -z "$jq" ]; then
echo "Could not find jq in runfiles" >&2
exit 1