Skip to content

Conversation

@marcing
Copy link
Collaborator

@marcing marcing commented Apr 11, 2025

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

@marcing marcing requested review from falkenhawk and partikus April 11, 2025 09:58
Comment on lines -28 to -33
"repositories": [
{
"type": "pear",
"url": "https://pear.php.net"
}
],
Copy link
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
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 😅

Copy link
Collaborator Author

@marcing marcing Apr 14, 2025

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

Copy link
Member

@falkenhawk falkenhawk Apr 14, 2025

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
Collaborator Author

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
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

Sign up for free to 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.

3 participants