fix downloader selecting drafts

This commit is contained in:
henderkes 2025-12-20 23:29:25 +01:00
parent 53f7cdefe0
commit 6b5200002e
2 changed files with 224 additions and 207 deletions

428
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -108,6 +108,9 @@ class Downloader
if (($rel['prerelease'] ?? false) === true && ($source['prefer-stable'] ?? false)) {
continue;
}
if (($rel['draft'] ?? false) === true && (($source['prefer-stable'] ?? false) || !$rel['tarball_url'])) {
continue;
}
if (!($source['match'] ?? null)) {
$url = $rel['tarball_url'] ?? null;
break;