Skip to content

Comments

Enable Dependabot for composer#125

Merged
asgrim merged 1 commit intophp:mainfrom
TimWolla:dependabot-composer
Nov 22, 2024
Merged

Enable Dependabot for composer#125
asgrim merged 1 commit intophp:mainfrom
TimWolla:dependabot-composer

Conversation

@TimWolla
Copy link
Member

Since #121 composer is configured to bump the minimally supported version of dependencies when manually performing updates to composer dependencies. Composer is also configured such that it will not offer any dependencies that are incompatible with PHP 8.1 as the lowest supported PHP version.

This allows to reliably enable Dependabot also for composer dependencies, as it will do the right thing and of course CI will double check that. This absolves the maintainer from manually needing to check for updates every so often, because they will be delivered by a PR once a month, making it easy to keep the dependencies up to date and secure.

Correct behavior was verified in a fork. As a result of merging this PR, Dependabot will offer an update of psalm/plugin-phpunit to 0.19.0, which will not automatically be performed by composer update, given it's considered a major version, showcasing the benefit of the Dependabot integration.

Since php#121 composer is configured to bump the minimally supported
version of dependencies when manually performing updates to composer
dependencies. Composer is also configured such that it will not offer any
dependencies that are incompatible with PHP 8.1 as the lowest supported PHP
version.

This allows to reliably enable Dependabot also for composer dependencies, as it
will do the right thing and of course CI will double check that. This absolves
the maintainer from manually needing to check for updates every so often,
because they will be delivered by a PR once a month, making it easy to keep the
dependencies up to date and secure.

Correct behavior was verified in a fork. As a result of merging this PR,
Dependabot will offer an update of `psalm/plugin-phpunit` to 0.19.0, which will
not automatically be performed by `composer update`, given it's considered a
major version, showcasing the benefit of the Dependabot integration.
@asgrim asgrim self-assigned this Nov 22, 2024
@asgrim asgrim added the enhancement New feature or request label Nov 22, 2024
@asgrim asgrim added this to the 0.3.0 milestone Nov 22, 2024
@asgrim asgrim merged commit 21e5d9d into php:main Nov 22, 2024
@asgrim
Copy link
Contributor

asgrim commented Nov 22, 2024

Thanks @TimWolla !

@TimWolla TimWolla deleted the dependabot-composer branch November 22, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants