Skip to content

Commit d02cd8b

Browse files
Set extra.plugin-optional composer flag (#217)
fixes #213
1 parent 69fb67c commit d02cd8b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"test-ci": "vendor/bin/phpspec run -c phpspec.ci.yml"
4949
},
5050
"extra": {
51-
"class": "Http\\Discovery\\Composer\\Plugin"
51+
"class": "Http\\Discovery\\Composer\\Plugin",
52+
"plugin-optional": true
5253
},
5354
"conflict": {
5455
"nyholm/psr7": "<1.0"

tests/install.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ echo "Using directory: ${BUILD_DIR}"
1717
mkdir -p $BUILD_DIR
1818

1919
# Init composer
20-
composer req --working-dir $BUILD_DIR php-http/discovery --no-update
20+
composer req --working-dir $BUILD_DIR php-http/discovery --no-update --no-plugins
21+
composer config --working-dir $BUILD_DIR --no-plugins allow-plugins.php-http/discovery false
2122

2223
# Argument 3 installs additional composer packages
2324
composer req --working-dir $BUILD_DIR $3

0 commit comments

Comments
 (0)