mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Fix artifact downloader constants and improve error message for hosted package-bin
This commit is contained in:
parent
7fa6fd08d4
commit
93a697ebbf
@ -36,12 +36,14 @@ use ZM\Logger\ConsoleColor;
|
||||
*/
|
||||
class ArtifactDownloader
|
||||
{
|
||||
/** @var array<string, class-string<DownloadTypeInterface>> */
|
||||
public const array DOWNLOADERS = [
|
||||
'bitbuckettag' => BitBucketTag::class,
|
||||
'filelist' => FileList::class,
|
||||
'git' => Git::class,
|
||||
'ghrel' => GitHubRelease::class,
|
||||
'ghtar', 'ghtagtar' => GitHubTarball::class,
|
||||
'ghtar' => GitHubTarball::class,
|
||||
'ghtagtar' => GitHubTarball::class,
|
||||
'local' => LocalDir::class,
|
||||
'pie' => PIE::class,
|
||||
'url' => Url::class,
|
||||
|
||||
@ -58,6 +58,6 @@ class HostedPackageBin implements DownloadTypeInterface
|
||||
return DownloadResult::archive($filename, $config, extract: $config['extract'] ?? null, version: $version);
|
||||
}
|
||||
}
|
||||
throw new DownloaderException("No matching asset found for hosted package-bin {$name} with criteria: {$find_str}");
|
||||
throw new DownloaderException("No matching asset found for hosted package-bin {$name}: {$find_str}");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user