Skip to content

Commit

Permalink
Set extra.plugin-optional composer flag (#217)
Browse files Browse the repository at this point in the history
fixes #213
  • Loading branch information
nicolas-grekas committed Feb 10, 2023
1 parent 69fb67c commit d02cd8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion tests/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d02cd8b

Please sign in to comment.