Skip to content

Commit a06cc32

Browse files
committed
pin libpng to released tags, not git
1 parent 022fdb2 commit a06cc32

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

config/source.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -682,19 +682,20 @@
682682
}
683683
},
684684
"libpng": {
685-
"type": "git",
686-
"url": "https://github.com/glennrp/libpng.git",
687-
"rev": "libpng16",
685+
"type": "ghtagtar",
686+
"repo": "pnggroup/libpng",
687+
"match": "v1\\.6\\.\\d+",
688+
"query": "?per_page=150",
688689
"provide-pre-built": true,
689690
"license": {
690691
"type": "file",
691692
"path": "LICENSE"
692693
}
693694
},
694695
"librabbitmq": {
695-
"type": "git",
696-
"url": "https://github.com/alanxz/rabbitmq-c.git",
697-
"rev": "master",
696+
"type": "ghtar",
697+
"repo": "alanxz/rabbitmq-c",
698+
"prefer-stable": true,
698699
"license": {
699700
"type": "file",
700701
"path": "LICENSE"

src/SPC/store/Downloader.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ public static function getLatestBitbucketTag(string $name, array $source): array
9797
public static function getLatestGithubTarball(string $name, array $source, string $type = 'releases'): array
9898
{
9999
logger()->debug("finding {$name} source from github {$type} tarball");
100+
$source['query'] ??= '';
100101
$data = json_decode(self::curlExec(
101-
url: "https://api.github.com/repos/{$source['repo']}/{$type}",
102+
url: "https://api.github.com/repos/{$source['repo']}/{$type}{$source['query']}",
102103
hooks: [[CurlHook::class, 'setupGithubToken']],
103104
retries: self::getRetryAttempts()
104105
), true, 512, JSON_THROW_ON_ERROR);

0 commit comments

Comments
 (0)