From 84f23853b7ed7dec89ba75d0416f5cdcf21538fe Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Thu, 23 Jul 2020 03:03:44 +0530 Subject: [PATCH] Use default packagist mirror for old PHP --- src/scripts/darwin.sh | 4 ---- src/scripts/linux.sh | 4 ---- src/scripts/win32.ps1 | 4 ---- 3 files changed, 12 deletions(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index f84fd030..08c3d129 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -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. diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index bb52f434..38cc2dfa 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -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. diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 0381f078..14da53b9 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -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.