From 20a3ce08512faf951debdcb09366a565e710da6d Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Tue, 2 Feb 2021 11:43:59 +0100
Subject: [PATCH] Fix compatibility with composer <1.8.5 (Debian 10)

---
 bin/build-release.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/build-release.sh b/bin/build-release.sh
index 9ae7eac0e..7c4204e5d 100755
--- a/bin/build-release.sh
+++ b/bin/build-release.sh
@@ -40,6 +40,9 @@ if [ ! -x "$TARGET/composer.phar" ]; then
     curl -sS https://getcomposer.org/installer | php -- --install-dir=$TARGET
 fi
 
+# Downgrade composer to v1 to remain compatible with composer <1.8.5 (Debian 10)
+php "$TARGET/composer.phar" self-update --1
+
 # Set the version in composer.json
 php "$TARGET/composer.phar" config version "v$VERSION" -d "$TARGET"
 
@@ -63,6 +66,7 @@ rm "$TARGET/.gitattributes"
 rm -r "$TARGET/.github"
 rm "$TARGET/.php_cs.dist"
 rm "$TARGET/codecov.yml"
+rm "$TARGET/phpcs.xml"
 rm "$TARGET/psalm.xml"
 rm "$TARGET"/{,modules}/.gitignore
 rm "$TARGET"/{cache,config,metadata,locales}/.gitkeep
-- 
GitLab