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

Add recommendation that developers using macOS CLI should install gpatch. #3789

Open
trackleft opened this issue Oct 17, 2024 · 0 comments
Open
Labels
developer experience documentation Improvements or additions to documentation

Comments

@trackleft
Copy link
Member

trackleft commented Oct 17, 2024

It was discovered that some patches do not apply via composer when running composer install or composer update -W.
After some searching, an article was found cweagans/composer-patches#423
The recommendation was to install gpatch.

The error we saw when attempting to run composer update locally on a mac.

  - Applying patches for drupal/role_delegation
    https://www.drupal.org/files/issues/2022-07-25/3299201-4.patch (Restrict access to cancel/remove accounts with non-assignable roles (3299201))
   Could not apply patch! Skipping. The error was: The process "patch '-p0' --no-backup-if-mismatch -d 'pantheon-sites/xxxxx/web/modules/contrib/role_delegation' < '/var/folders/jg/j1yj5mjn31552zvkxwhk8x000000gr/T/67116f0d4ae03.patch'" exceeded the timeout of 300 seconds.

In Patches.php line 331:
                                                                               
  Cannot apply patch Restrict access to cancel/remove accounts with non-assig  
  nable roles (3299201) (https://www.drupal.org/files/issues/2022-07-25/32992  
  01-4.patch)!                                                                 

How to install using homebrew.

brew install gpatch
@trackleft trackleft added documentation Improvements or additions to documentation developer experience labels Oct 17, 2024
@joeparsons joeparsons changed the title Add recommendation that developers using MacOS CLI should install gpatch. Add recommendation that developers using macOS CLI should install gpatch. Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant