From 253db8d93647e7c01e01ac0d0b1d9e10b0f3ee72 Mon Sep 17 00:00:00 2001 From: justinsb Date: Mon, 10 Jun 2024 10:07:39 -0400 Subject: [PATCH] chore: postsubmits should also install jq if missing We may be running in a container / build environment that does not have jq. Try to install it using apt. --- dev/tasks/install-tools | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev/tasks/install-tools b/dev/tasks/install-tools index 16fe4d9d86..0c81d82a75 100755 --- a/dev/tasks/install-tools +++ b/dev/tasks/install-tools @@ -30,3 +30,8 @@ EOF ln -sf /usr/local/go/bin/go /usr/bin/go rm /tmp/go.tar.gz fi + +if ! command -v jq; then + echo "Must install jq; assuming we are running in a container" + apt-get install --yes jq +fi