Skip to content

Commit

Permalink
Merge pull request #873 from ergebnis/fix/allow-plugins
Browse files Browse the repository at this point in the history
Fix: Allow `ergebnis/composer-normalize` to run as composer plugin
  • Loading branch information
localheinz committed Jan 22, 2022
2 parents a4d41aa + 38dc976 commit c7a5254
Show file tree
Hide file tree
Showing 20 changed files with 97 additions and 6 deletions.
Expand Up @@ -17,5 +17,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -14,5 +14,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -15,5 +15,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -17,5 +17,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -14,5 +14,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -15,5 +15,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -17,5 +17,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -15,5 +15,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -15,5 +15,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -15,5 +15,10 @@
"require": {
"php": "^5.6",
"ext-json": "*"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -9,5 +9,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -15,5 +15,10 @@
"require": {
"php": "^5.6",
"ext-json": "*"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -10,5 +10,10 @@
"php": "^5.6",
"ext-json": "*"
},
"_comment": "This composer.json is valid according to a lax validation, a composer.lock is present and fresh before invoking the command, composer.json is not yet normalized, and composer.lock is still fresh after invoking the command."
"_comment": "This composer.json is valid according to a lax validation, a composer.lock is present and fresh before invoking the command, composer.json is not yet normalized, and composer.lock is still fresh after invoking the command.",
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -13,5 +13,10 @@
"scripts": {
"hello": "echo 'Hello!'"
},
"_comment": "This composer.json is valid according to a lax validation, a composer.lock is present and fresh before invoking the command, composer.json is not yet normalized, and composer.lock is not fresh after invoking the command."
"_comment": "This composer.json is valid according to a lax validation, a composer.lock is present and fresh before invoking the command, composer.json is not yet normalized, and composer.lock is not fresh after invoking the command.",
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -15,5 +15,10 @@
"require": {
"php": "^5.6",
"ext-json": "*"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -15,5 +15,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -15,5 +15,10 @@
"require": {
"php": "^5.6",
"ext-json": "*"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -9,5 +9,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
Expand Up @@ -9,5 +9,10 @@
"require": {
"ext-json": "*",
"php": "^5.6"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
}
}
4 changes: 0 additions & 4 deletions test/Util/Scenario.php
Expand Up @@ -72,10 +72,6 @@ public function consoleParameters(): array
{
$parameters = [
'command' => 'normalize',
/**
* @see https://github.com/composer/composer/blob/2.2.3/src/Composer/Plugin/PluginManager.php#L702-L744
*/
'--no-interaction' => true,
];

if ($this->commandInvocation->is(CommandInvocation::usingFileArgument())) {
Expand Down

0 comments on commit c7a5254

Please sign in to comment.