Skip to content

Commit

Permalink
Add hint to why-not that calling update with a temporary constraint c…
Browse files Browse the repository at this point in the history
…an also help elucidate an issue
  • Loading branch information
Seldaek authored and emahorvat52 committed Jan 18, 2023
1 parent 78e4199 commit e90be2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Composer/Command/BaseDependencyCommand.php
Expand Up @@ -127,6 +127,10 @@ protected function doExecute(InputInterface $input, OutputInterface $output, boo
$this->printTable($output, $results);
}

if ($inverted) {
$this->getIO()->writeError('Not finding what you were looking for? Try calling `composer update "'.$input->getArgument(self::ARGUMENT_PACKAGE).':'.$input->getArgument(self::ARGUMENT_CONSTRAINT).'" --dry-run` to get another view on the problem.');
}

return 0;
}

Expand Down

0 comments on commit e90be2d

Please sign in to comment.