You are here

Run core patches with Drush Make file

Submitted by Alan Mels on Mon, 02/11/2019 - 19:46

Create a directory and download the patch file:

  1. mkdir ~/.drush/patches && cd ~/.drush/patches && wget https://www.drupal.org/files/issues/1038652-128.patch

Create a file with `nano ~/.drush/patch-comment.make` and paste:

  1. ; Specify the version of Drupal being used.
  2. core = 7.x
  3.  
  4. ; Specify the api version of Drush Make.
  5. api = 2
  6.  
  7. ; Drupal core patches can be add like contrib patches:
  8. projects[drupal][patch][] = patches/1038652-128.patch

Then in Drupal root run:

  1. drush make ~/.drush/patch-comment.make
  2. fix-sl

That's it!

Based on: https://dev.acquia.com/blog/patching-drush-make and https://www.webomelette.com/how-use-drush-make-your-daily-routine

Alternative method: https://bitbucket.org/davereid/drush-patchfile