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

feat(manager/composer): support updates with minimal changes #34218

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ste93cry
Copy link

@ste93cry ste93cry commented Feb 13, 2025

Changes

I'm implementing a new function in the Composer package manager that, depending on the installed version, will append the --minimal-changes option to the command to update the dependencies. As the tool constraint can be either a single version or a range, like in the default case where the package manager version is not pinned explicitly, I had to expose the intersects() function of the semver package, which allows checking whether the given constraint falls under the conditions for which the package manager supports the option.

Context

Closes #34147

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@ste93cry ste93cry force-pushed the composer-updates-with-minimal-changes branch from e68d34e to 6100dcd Compare February 13, 2025 21:48
@viceice viceice self-requested a review February 13, 2025 22:12
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.

Support --minimal-changes CLI option for Composer >= 2.7
3 participants