Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Revert unneeded peer-dep-pin and re-gen lock file #7618

Merged
merged 2 commits into from Dec 26, 2023

Conversation

GrahamCampbell
Copy link
Contributor

Closes #7517.

@GrahamCampbell GrahamCampbell changed the title Revert unneeded peer-dep-pin chore: Revert unneeded peer-dep-pin Dec 25, 2023
@GrahamCampbell GrahamCampbell changed the title chore: Revert unneeded peer-dep-pin chore: Revert unneeded peer-dep-pin and re-gen lock file Dec 25, 2023
@@ -5,7 +5,6 @@
"icanhazstring/composer-unused": "^0.8.11",
"maglnet/composer-require-checker": "^4.7.1",
"mi-schi/phpmd-extension": "^4.3.0",
"pdepend/pdepend": "~2.15.0",
Copy link
Member

Choose a reason for hiding this comment

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

can we somehow prevent installing wrong version?
eg require version of direct dependencies that enforce high-level peer-dependencies, or with conflicts?

i imagine someone installing with --prefer-lowest etc, and getting broken variant of this lib

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The other repo should do that, not us. It's wrong for us to intrude in that way, or even assume they will keep using that lib at all. The risk is low anyway IMO, since the intended use case is to install from lock file.

@GrahamCampbell GrahamCampbell marked this pull request as ready for review December 25, 2023 01:36
@coveralls
Copy link

Coverage Status

coverage: 94.795%. remained the same
when pulling 7443fa4 on GrahamCampbell:patch-4
into c0c69e5 on PHP-CS-Fixer:master.

@keradus
Copy link
Member

keradus commented Dec 26, 2023

@Wirone , you were one introducing it, want to give a green light ?

@Wirone
Copy link
Member

Wirone commented Dec 26, 2023

I kind of agree with @GrahamCampbell that it's Mess Detector's responsibility to provide proper constraints (that would exclude invalid version of its dependency). It was a hack to ensure proper MD work, but at this point we can lock on newer, working release.

@Wirone Wirone merged commit 8c784d4 into PHP-CS-Fixer:master Dec 26, 2023
25 checks passed
@GrahamCampbell GrahamCampbell deleted the patch-4 branch December 26, 2023 21:36
danog pushed a commit to zoonru/PHP-CS-Fixer that referenced this pull request Feb 2, 2024
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.

chore: remove deep dependency declaration of pdepend/pdepend when it's compatible with Symfony 7
4 participants