mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-11-25 08:38:38 +07:00
Fix composer peer fingerprint error for old PHP
This commit is contained in:
@ -220,6 +220,10 @@ add_tool() {
|
||||
if [ -n "$COMPOSER_TOKEN" ]; then
|
||||
composer -q global config github-oauth.github.com "$COMPOSER_TOKEN"
|
||||
fi
|
||||
# TODO: Remove after composer 2.0 update, fixes peer fingerprint error
|
||||
if [[ "$version" =~ $old_versions ]]; then
|
||||
composer -q global config repos.packagist composer https://repo-ca-bhs-1.packagist.org
|
||||
fi
|
||||
elif [ "$tool" = "cs2pr" ]; then
|
||||
sudo sed -i 's/\r$//; s/exit(9)/exit(0)/' "$tool_path"
|
||||
elif [ "$tool" = "phan" ]; then
|
||||
|
||||
Reference in New Issue
Block a user