Skip to content

Commit

Permalink
Merge pull request #451 from jakzal/ignore-latest-phars
Browse files Browse the repository at this point in the history
Lock php-fuzzer and always use the latest version of phparkitect
  • Loading branch information
jakzal authored Aug 10, 2022
2 parents 650476e + aec774f commit 42dd1ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/devkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ private function findLatestPharsCommand(string $jsonPath): Command
{
$command = <<<'CMD'
grep -e 'github\.com.*releases.*\.phar"' %TOOLBOX_JSON% |
grep -v -e '/latest/' |
sed -e 's@.*github.com/\(.*\)/releases.*@\1@' |
xargs -I"{}" sh -c "curl -s -XGET 'https://api.github.com/repos/{}/releases/latest' -H 'Accept:application/json' | grep browser_download_url | grep .phar | head -n 1" |
sed -e 's/^[^:]*: "\([^"]*\)"/\1/'
Expand Down
2 changes: 1 addition & 1 deletion resources/architecture.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"website": "https://github.com/phparkitect/arkitect",
"command": {
"phar-download": {
"phar": "https://github.com/phparkitect/arkitect/releases/download/0.2.27/phparkitect.phar",
"phar": "https://github.com/phparkitect/arkitect/releases/latest/download/phparkitect.phar",
"bin": "%target-dir%/phparkitect"
}
},
Expand Down
2 changes: 1 addition & 1 deletion resources/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"website": "https://github.com/nikic/PHP-Fuzzer",
"command": {
"phive-install": {
"alias": "nikic/php-fuzzer",
"alias": "nikic/php-fuzzer:0.0.5",
"bin": "%target-dir%/php-fuzzer"
}
},
Expand Down

0 comments on commit 42dd1ec

Please sign in to comment.