From d4a2bd93298ceeddb23861302291f3ae778bba38 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 10 Feb 2023 09:42:03 +0100 Subject: [PATCH] Set extra.plugin-optional composer flag --- composer.json | 3 ++- tests/install.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 486750a..ecbbf4f 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,8 @@ "test-ci": "vendor/bin/phpspec run -c phpspec.ci.yml" }, "extra": { - "class": "Http\\Discovery\\Composer\\Plugin" + "class": "Http\\Discovery\\Composer\\Plugin", + "plugin-optional": true }, "conflict": { "nyholm/psr7": "<1.0" diff --git a/tests/install.sh b/tests/install.sh index 01da882..33caeb4 100755 --- a/tests/install.sh +++ b/tests/install.sh @@ -17,7 +17,8 @@ echo "Using directory: ${BUILD_DIR}" mkdir -p $BUILD_DIR # Init composer -composer req --working-dir $BUILD_DIR php-http/discovery --no-update +composer req --working-dir $BUILD_DIR php-http/discovery --no-update --no-plugins +composer config --working-dir $BUILD_DIR --no-plugins allow-plugins.php-http/discovery false # Argument 3 installs additional composer packages composer req --working-dir $BUILD_DIR $3