mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-14 04:15:35 +08:00
pin libpng to released tags, not git
This commit is contained in:
@@ -682,9 +682,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"libpng": {
|
"libpng": {
|
||||||
"type": "git",
|
"type": "ghtagtar",
|
||||||
"url": "https://github.com/glennrp/libpng.git",
|
"repo": "pnggroup/libpng",
|
||||||
"rev": "libpng16",
|
"match": "v1\\.6\\.\\d+",
|
||||||
|
"query": "?per_page=150",
|
||||||
"provide-pre-built": true,
|
"provide-pre-built": true,
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
@@ -692,9 +693,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"librabbitmq": {
|
"librabbitmq": {
|
||||||
"type": "git",
|
"type": "ghtar",
|
||||||
"url": "https://github.com/alanxz/rabbitmq-c.git",
|
"repo": "alanxz/rabbitmq-c",
|
||||||
"rev": "master",
|
"prefer-stable": true,
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "LICENSE"
|
"path": "LICENSE"
|
||||||
|
|||||||
@@ -97,8 +97,9 @@ class Downloader
|
|||||||
public static function getLatestGithubTarball(string $name, array $source, string $type = 'releases'): array
|
public static function getLatestGithubTarball(string $name, array $source, string $type = 'releases'): array
|
||||||
{
|
{
|
||||||
logger()->debug("finding {$name} source from github {$type} tarball");
|
logger()->debug("finding {$name} source from github {$type} tarball");
|
||||||
|
$source['query'] ??= '';
|
||||||
$data = json_decode(self::curlExec(
|
$data = json_decode(self::curlExec(
|
||||||
url: "https://api.github.com/repos/{$source['repo']}/{$type}",
|
url: "https://api.github.com/repos/{$source['repo']}/{$type}{$source['query']}",
|
||||||
hooks: [[CurlHook::class, 'setupGithubToken']],
|
hooks: [[CurlHook::class, 'setupGithubToken']],
|
||||||
retries: self::getRetryAttempts()
|
retries: self::getRetryAttempts()
|
||||||
), true, 512, JSON_THROW_ON_ERROR);
|
), true, 512, JSON_THROW_ON_ERROR);
|
||||||
|
|||||||
Reference in New Issue
Block a user