mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-10-16 08:15:11 +07:00
Fix composer peer fingerprint error for old PHP
This commit is contained in:
@ -186,6 +186,10 @@ Function Add-Tool() {
|
||||
if (Test-Path env:COMPOSER_TOKEN) {
|
||||
composer -q global config github-oauth.github.com $env:COMPOSER_TOKEN
|
||||
}
|
||||
# TODO: Remove after composer 2.0 update, fixes peer fingerprint error
|
||||
if ($version -lt 5.6) {
|
||||
composer -q global config repos.packagist composer https://repo-ca-bhs-1.packagist.org
|
||||
}
|
||||
} elseif($tool -eq "wp-cli") {
|
||||
Copy-Item $php_dir\wp-cli.bat -Destination $php_dir\wp.bat
|
||||
}
|
||||
|
Reference in New Issue
Block a user