From a02508afae02b186ec3d8cf0617688c61ca305e4 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Tue, 29 Nov 2022 09:28:49 -0500 Subject: [PATCH] fix: Try to catch incompatible sops and yq versions Signed-off-by: Devin Buhl --- configure | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure b/configure index 6165a967..e3eaf9f5 100755 --- a/configure +++ b/configure @@ -256,6 +256,16 @@ verify_binaries() { _has_binary "task" _has_binary "terraform" _has_binary "tflint" + + if ! [[ "$(sops --version)" =~ 3\.[0-9]+\.[0-9]+ ]]; then + _log "ERROR" "Incompatible sops version, make sure you are using the latest release of v3" + exit 1 + fi + + if ! [[ "$(yq --version)" =~ 4\.[0-9]+\.[0-9]+ ]]; then + _log "ERROR" "Incompatible yq version, make sure you are using the latest release of v4" + exit 1 + fi } verify_kubevip() {