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

Support multiple "patches-file" #599

Open
4 tasks done
mendrupal opened this issue Nov 5, 2024 · 1 comment
Open
4 tasks done

Support multiple "patches-file" #599

mendrupal opened this issue Nov 5, 2024 · 1 comment
Labels
enhancement New features, options, or other additions.

Comments

@mendrupal
Copy link

Verification

  • I have updated Composer to the most recent stable release (composer self-update)
  • I have updated Composer Patches to the most recent stable release (composer update cweagans/composer-patches)
  • I am using one of the supported PHP versions (8.0+)
  • I have searched existing issues and discussions for my idea.

Is your feature request related to a problem?

There are cases where having more than one patches file will be really useful. For example when using Drupal Profiles and having child repositories that depend on other profile repositories, there is no simple way to apply patches for the child if the parent is a protected or immutable repository.

There is an issue closed #581 in the issue queue mentioning this as part of the problem and suggested solution but that specific part was not addressed.

Describe your proposed solution(s)

The proposed solution allows for having multiple patches files defined.

"extra": { "composer-patches": { "patches-file": [ "patches.json", "patches_two.json" ] },

Attaching a patch before creating a PR for the community to review and improve if necessary.
multiple-patches-files.patch

Describe alternatives

No response

Additional context

No response

@mendrupal mendrupal added the enhancement New features, options, or other additions. label Nov 5, 2024
Copy link

github-actions bot commented Nov 5, 2024

👋 Thanks for the idea! Please remember that this is an open source project - feature requests may or may not be implemented, and if they are, the timeline is unknown. If you need a guaranteed implementation or timeline, sponsorships are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, options, or other additions.
Projects
None yet
Development

No branches or pull requests

1 participant