mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 04:11:06 +07:00
Use default packagist mirror for old PHP
This commit is contained in:
parent
a4001afbd6
commit
84f23853b7
@ -144,10 +144,6 @@ configure_composer() {
|
|||||||
if [ -n "$COMPOSER_TOKEN" ]; then
|
if [ -n "$COMPOSER_TOKEN" ]; then
|
||||||
composer -q global config github-oauth.github.com "$COMPOSER_TOKEN"
|
composer -q global config github-oauth.github.com "$COMPOSER_TOKEN"
|
||||||
fi
|
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.
|
# Function to setup a remote tool.
|
||||||
|
@ -243,10 +243,6 @@ configure_composer() {
|
|||||||
if [ -n "$COMPOSER_TOKEN" ]; then
|
if [ -n "$COMPOSER_TOKEN" ]; then
|
||||||
composer -q global config github-oauth.github.com "$COMPOSER_TOKEN"
|
composer -q global config github-oauth.github.com "$COMPOSER_TOKEN"
|
||||||
fi
|
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.
|
# Function to setup a remote tool.
|
||||||
|
@ -180,10 +180,6 @@ Function Edit-ComposerConfig() {
|
|||||||
if (Test-Path env:COMPOSER_TOKEN) {
|
if (Test-Path env:COMPOSER_TOKEN) {
|
||||||
composer -q global config github-oauth.github.com $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.
|
# Function to add tools.
|
||||||
|
Loading…
Reference in New Issue
Block a user