mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Output error if a VCS repo has no package at all instead of silently going through
This commit is contained in:
parent
518984b70d
commit
ec301ea8bb
1 changed files with 4 additions and 0 deletions
|
@ -226,6 +226,10 @@ class VcsRepository extends ArrayRepository
|
|||
}
|
||||
|
||||
$this->io->overwrite('', false);
|
||||
|
||||
if (!$this->getPackages()) {
|
||||
throw new \RuntimeException('No composer.json was found in any branch or tag of '.$this->url.', could not load a package from it.');
|
||||
}
|
||||
}
|
||||
|
||||
private function preProcess(VcsDriverInterface $driver, array $data, $identifier)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue