Skip to content

Switch PEAR dependency to github - #20

Closed
marcing wants to merge 1 commit into
masterfrom
pear-switch
Closed

Switch PEAR dependency to github#20
marcing wants to merge 1 commit into
masterfrom
pear-switch

Conversation

@marcing

Copy link
Copy Markdown
Collaborator

Fix for composer error:
"The PEAR repository has been removed from Composer 2.x"

Comment threadcomposer.json
Comment on lines -28 to -33
"repositories": [
{
"type": "pear",
"url": "https://pear.php.net"
}
],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me get this straight, specifying this repository no longer works in composer v2?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I remember. It's been a long time. But I don't think this PR is really necessary, since it's specified in https://github.com/zf1s/phpunit/blob/master/.github/workflows/tests.yml#L52 to use composer v1, just offload the testing to github, why would you even want to run tests locally 😅

@marcingmarcingApr 14, 2025

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@falkenhawk there have been too many issues to test it via github each time, new way works both in v1 and v2, so it's an improvement. It's about this issue:
composer/composer#8778

@falkenhawkfalkenhawkApr 14, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yet it doesn't work on php 5.3, only the pear.php.net version is compatible

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@falkenhawk ok let it stay then.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a bit cumbersome, but locally installed composer can be switched to v1 and back to v2 with composer self-update --1, composer self-update --2

@falkenhawkfalkenhawk mentioned this pull request Apr 1, 2026
@falkenhawk

Copy link
Copy Markdown
Member

superseded by #24

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@marcing@falkenhawk