Skip to content

Commit

Permalink
Fix: Disable plugins when updating lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 13, 2018
1 parent e63c4a5 commit 7b520d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Command/NormalizeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected function execute(Console\Input\InputInterface $input, Console\Output\O
private function updateLocker(): int
{
return $this->getApplication()->run(
new Console\Input\StringInput('update --lock'),
new Console\Input\StringInput('update --lock --no-plugins'),
new Console\Output\NullOutput()
);
}
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/Command/NormalizeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ public function testExecuteSucceedsIfComposerLockFileExistsIsFreshComposerFileIs
Argument::allOf(
Argument::type(Console\Input\StringInput::class),
Argument::that(function (Console\Input\StringInput $input) {
return 'update --lock' === (string) $input;
return 'update --lock --no-plugins' === (string) $input;
})
),
Argument::type(Console\Output\NullOutput::class)
Expand Down

0 comments on commit 7b520d9

Please sign in to comment.