From aca894188e63eade615f0983d8ff82304dec1c89 Mon Sep 17 00:00:00 2001
From: sticky-note <sticky-note@gmail.com>
Date: Sat, 27 Aug 2022 10:51:26 +1100
Subject: [PATCH] fix(composer): stop hanging by preventing interaction

---
 php/composer.sls | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/php/composer.sls b/php/composer.sls
index 95537b2..0bfeee5 100644
--- a/php/composer.sls
+++ b/php/composer.sls
@@ -45,9 +45,9 @@ update-composer:
   cmd.run:
     - name: "{{ install_file }} selfupdate"
 {% if grains['os_family'] == 'FreeBSD' %}
-    - unless: test $(date -v+60d -j -f "%Y-%m-%d %H:%M:%S" "$({{ install_file }} --version | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s")
+    - unless: test $(date -v+60d -j -f "%Y-%m-%d %H:%M:%S" "$({{ install_file }} --version --no-interaction | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s")
 {% else %}
-    - unless: test $(date -d "60 days $({{ install_file }} --version | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s")
+    - unless: test $(date -d "60 days $({{ install_file }} --version --no-interaction | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s")
 {% endif %}
     - cwd: {{ php.lookup.pkgs.local_bin }}
     - env:
-- 
GitLab