mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 12:24:49 +01:00
Bake version data into PHAR file
Compatibility between `ocramius/package-versions`, `composer/package-versions-deprecated`, `composer-runtime-api` and `humbug/box` (with `humbug/scoper` further complicating things)has been always a problematic area. So instead of trying to keep up with all the changes in all of those packages, we will now bake the version data (for the packages we need) into the PHAR file itself. Fixes vimeo/psalm#7606 Fixes vimeo/psalm#5399
This commit is contained in:
parent
369ba0635e
commit
683fe2f4c6
@ -8,6 +8,12 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
php $DIR/improve_class_alias.php
|
||||
|
||||
php -r 'require "vendor/autoload.php"; Psalm\Internal\VersionUtils::dump();'
|
||||
if [[ ! -f build/phar-versions.php ]] ; then
|
||||
echo "failed to dump versions";
|
||||
exit;
|
||||
fi
|
||||
|
||||
vendor/bin/box compile
|
||||
|
||||
if [[ "$GPG_SIGNING" != '' ]] ; then
|
||||
|
@ -1,7 +1,11 @@
|
||||
{
|
||||
"output" : "build/psalm.phar",
|
||||
"files": [
|
||||
"psalm"
|
||||
"psalm",
|
||||
"build/phar-versions.php"
|
||||
],
|
||||
"map": [
|
||||
{"build/phar-versions.php" : "phar-versions.php"}
|
||||
],
|
||||
"files-bin": ["config.xsd"],
|
||||
"directories-bin" : [
|
||||
|
Loading…
Reference in New Issue
Block a user