Document patching might fail on macOS when using default `patch`, GNU patch needed

Created on 20 October 2023, about 1 year ago
Updated 7 December 2023, 12 months ago

Problem/Motivation

If you run the acli app:new:from:drupal7 command on MacOS the patch process might fail like this:

 https://www.drupal.org/files/issues/2022-12-20/core-derived_field_and_field_display_migrations-3097336-90--compatible-with-3202462-20.patch ([AMA_MIGRATE_FIX] Issue #3097336: Improve the DX for migrating content entities: view modes, fields, formatters, widgets etc should be migrated per entity type + bundle)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-12-20/core-derived_field_and_field_display_migrations-3097336-90--compatible-with-3202462-20.patch

Steps to reproduce

Run acli app:new:from:drupal7 on a Mac with the original Patch programm from Apple. The out-of-the-box patch command on Mac seems to have an bug.

Proposed resolution

If you have Homebrew on yout Mac: Install GPatch with brew install gpatch.

Remaining tasks

Fix documentation.

Thanks

I talked with Wim at the Drupalcon Lille about the problem and he was very kind and helped me correct the setup on my Mac.

📌 Task
Status

Fixed

Version

1.8

Component

Documentation

Created by

🇩🇪Germany derheap

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024