pin libpng to released tags, not git

This commit is contained in:
henderkes
2025-12-30 11:58:57 +01:00
parent 022fdb2fc5
commit a06cc32491
2 changed files with 9 additions and 7 deletions

View File

@@ -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"

View File

@@ -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);