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

Composer: allow composer installers 2.x #355

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Sep 27, 2023

Summary

This PR can be summarized in the following changelog entry:

  • Users requiring this package via [WP]Packagist can now use the composer/installers v2.

Relevant technical choices:

While the latest version of the composer/installers package is 2.2, I'm explicitly setting the version constraint to a lenient one as this is a non-dev requirement, which comes into play when people use a [WP]Packagist based site setup.

If we set the requirement very strictly, it could conflict with other plugins with different constraints and it is not as if any of the 2.x releases have touched the WordPress installer, so setting it to || 2.0 should be fine.

Test instructions

This PR can be tested by following these steps:

  • N/A

While the latest version of the `composer/installers` package is `2.2`, I'm explicitly setting the version constraint to a lenient one as this is a non-`dev` requirement, which comes into play when people use a [WP]Packagist based site setup.

If we set the requirement very strictly, it could conflict with other plugins with different constraints and it is not as if any of the 2.x releases have touched the WordPress installer, so setting it to `|| 2.0` should be fine.
@jrfnl jrfnl added yoast cs/qa changelog: other Needs to be included in the 'Other' category in the changelog labels Sep 27, 2023
@jrfnl jrfnl added this to the 3.2 milestone Sep 27, 2023
@private-packagist
Copy link

composer.lock

Package changes

Package Operation From To Changes
composer/installers upgrade v1.12.0 v2.2.0 diff

Settings · Docs · Powered by Private Packagist

@coveralls
Copy link

Pull Request Test Coverage Report for Build 6325589656

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 56.274%

Totals Coverage Status
Change from base Build 6325545092: 0.0%
Covered Lines: 148
Relevant Lines: 263

💛 - Coveralls

@jrfnl jrfnl merged commit 5d1d521 into develop Sep 27, 2023
15 checks passed
@jrfnl jrfnl deleted the JRF/composer-allow-composer-installers-2 branch September 27, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: other Needs to be included in the 'Other' category in the changelog yoast cs/qa
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants