update packages before requiring plugin-laravel

This commit is contained in:
Niels Vanpachtenbeke 2022-02-14 09:24:47 +01:00
parent b116744fa2
commit 6091b656c4

View File

@ -6,7 +6,7 @@ echo "Cleaning Up"
rm -rf ../laravel/ rm -rf ../laravel/
echo "Installing Laravel" echo "Installing Laravel"
composer create-project --quiet --prefer-dist "laravel/laravel" ../laravel composer create-project laravel/laravel ../laravel --quiet --prefer-dist
cd ../laravel/ cd ../laravel/
echo "Preparing Laravel" echo "Preparing Laravel"
@ -34,6 +34,7 @@ echo "Preparing Laravel"
echo "Adding package from source" echo "Adding package from source"
sed -e 's|"type": "project",|&"repositories": [ { "type": "path", "url": "../psalm-plugin-laravel" } ],|' -i composer.json sed -e 's|"type": "project",|&"repositories": [ { "type": "path", "url": "../psalm-plugin-laravel" } ],|' -i composer.json
COMPOSER_MEMORY_LIMIT=-1 composer update -W
COMPOSER_MEMORY_LIMIT=-1 composer require --dev "psalm/plugin-laravel:*" -W COMPOSER_MEMORY_LIMIT=-1 composer require --dev "psalm/plugin-laravel:*" -W
echo "Analyzing Laravel" echo "Analyzing Laravel"