Skip to content

Commit

Permalink
chore: postsubmits should also install jq if missing
Browse files Browse the repository at this point in the history
We may be running in a container / build environment that does not
have jq.  Try to install it using apt.
  • Loading branch information
justinsb committed Jun 10, 2024
1 parent d0a686b commit 253db8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev/tasks/install-tools
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 253db8d

Please sign in to comment.