Use default packagist mirror for old PHP

This commit is contained in:
Shivam Mathur 2020-07-23 03:03:44 +05:30
parent a4001afbd6
commit 84f23853b7
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
3 changed files with 0 additions and 12 deletions

View File

@ -144,10 +144,6 @@ configure_composer() {
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
}
# Function to setup a remote tool.

View File

@ -243,10 +243,6 @@ configure_composer() {
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
}
# Function to setup a remote tool.

View File

@ -180,10 +180,6 @@ Function Edit-ComposerConfig() {
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
}
}
# Function to add tools.