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

Allow 1.x and 2.x of "cweagans/composer-patches". #705

Merged
merged 3 commits into from
Feb 29, 2024

Conversation

rajeshreeputra
Copy link
Contributor

@rajeshreeputra rajeshreeputra commented Feb 26, 2024

This pull request is for: (mark with an "x")

  • modules/next

GitHub Issue: #704
Please add a link to the GitHub issue
where this problem is discussed.

  • I need help adding tests. (mark with an "x")
    Code changes need test coverage. If you don't know
    how to make tests, check this box to ask for help.

Describe your changes

Allow "cweagans/composer-patches" both versions i.e. 1.x and 2.x.

Copy link

vercel bot commented Feb 26, 2024

@rajeshreeputra is attempting to deploy a commit to the Chapter Three Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Collaborator

@JohnAlbin JohnAlbin left a comment

Choose a reason for hiding this comment

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

The installation instructions for Next Drupal already include requiring composer-patches to the Drupal project using the Next module. From https://next-drupal.org/learn/quick-start/apply-patches

That means this require line in the module's composer.json is redundant/can conflict with with the Drupal project's composer.json.

I think the proper fix to support either 1.x or 2.x of composer-patches is to remove the "cweagans/composer-patches": "~1.0", line from modules/next/composer.json

@rajeshreeputra
Copy link
Contributor Author

rajeshreeputra commented Feb 29, 2024

Yes, it only makes sense to support the "cweagans/composer-patches" version "~2.0".

Copy link
Collaborator

@JohnAlbin JohnAlbin left a comment

Choose a reason for hiding this comment

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

Yes, we can update "cweagans/composer-patches": "~2.0".

That's not what I requested. Removing the composer-patches requirement from the Next module will allow support for all versions of composer-patches from any project that requires Next module.

@rajeshreeputra
Copy link
Contributor Author

That make more sense to me and that will be great, thank you.

Copy link
Collaborator

@JohnAlbin JohnAlbin left a comment

Choose a reason for hiding this comment

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

Perfect!

@JohnAlbin JohnAlbin merged commit d69ca0d into chapter-three:main Feb 29, 2024
9 of 10 checks passed
@rajeshreeputra
Copy link
Contributor Author

Considering your availability, can we anticipate the release on Drupal.org in a couple of weeks. Thank you!

@rajeshreeputra rajeshreeputra deleted the patch-2 branch March 1, 2024 07:47
@rajeshreeputra
Copy link
Contributor Author

@JohnAlbin can get this released on Drupal.org, thank you!

@vishalkhode1
Copy link

@JohnAlbin can get this released on Drupal.org, thank you!

+1

@JohnAlbin
Copy link
Collaborator

@rajeshreeputra @vishalkhode1 It's been on Drupal.org since March 12. https://www.drupal.org/project/next/releases/2.x-dev

Also, a new alpha or beta release will be made in the next couple weeks.

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.

3 participants