Drupal-project: A Git alias that makes core Drupal development easy with this project

Created on 4 Mar 2018  路  5Comments  路  Source: drupal-composer/drupal-project

Drush is requiring composer to do module installation and so I thought it would be nice with this but not sure how to get core's git repos to download because of what I think is the subtree split?

docs

Most helpful comment

How about we document core-patch by specifying it as a composer script?

All 5 comments

I have the following alias in my .gitconfig. I use it from time to time to roll a quick core patch. It works as long the files are in the core folder.

[alias]
        core-patch = diff --src-prefix=a/core/ --dst-prefix=b/core/ -M

Fetch git repo with composer: composer require --prefer-source drupal/core:8.5.x-dev

Thanks @webflo, sorry for the silly questions but how in sync is the composer package version with d.o?

The thing I was trying to do last night was test out an old bug with the latest Drupal with a the latest stable release of a contrib module(pathauto). I was hoping to use my d.o git clone of 8.6.x and just drush -y en pathauto like I've done in the past, that didn't work because of drush changes. So I thought next bright idea since it asks for composer and I use this project is maybe I could configure my workflow with this. It would be way better for the contrib module dev, but for core dev it may not be the best, so I thought I'd ask.

My end result was in the core webroot I just composer'd down the contrib module, it touched my composer.json and composer.lock file but I just reverted those after for this task.

The subtree split is fairly up to date. You can run a git pull in the core folder after the initial install. It should work as long core did not update or add a new dependency.

How about we document core-patch by specifying it as a composer script?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

InspiredPrynce picture InspiredPrynce  路  4Comments

ao2 picture ao2  路  3Comments

waseem312 picture waseem312  路  3Comments

superfedya picture superfedya  路  7Comments

albabosh picture albabosh  路  3Comments