By William Turrell

2019-01-07 15:20:32 8 Comments

I'm using drupal-composer/drupal-project.

With that, installer-paths in composer.json installs core in web/core, it doesn't clone a full git repository.

I'd like a full repository, so I can reroll a patch for core on my dev site, within the project it will be used on, without having to clone and configure an entirely new project…

Is this even possible?

i.e. a modification to composer.json that will install core (or anything else for that matter) as a fully functional repository (i.e. with .git directories) - so you can create new branches, run diffs against to generate patches, and so on.


@mradcliffe 2019-01-07 21:29:28

I'm providing an answer to this even though it's probably off-topic and I have a heavy bias here.

For core development we shouldn't use a composer-based install pattern such as drupal-composer/drupal-project because we're modifying the software project itself. Generally composer require or create-project or init is used when we want to create a new library, project or piece of software and dependencies to it, but not when working on an existing library or framework.

  1. At the moment the best way to get started if you are new to core development is to visit Use either the ResilioSync option or download the latest quicksprint tools release instead. This is the tool set that the Core Mentoring program currently uses to get started from scratch.
  2. This isn't the only place/work flow for core development. Many of the core/strategic initiatives, or working groups within core development, may have a preferred development environment. For instance the Javascript Modernisation Initiative has excellent documentation for their unique work flow and challenges.
  3. Of course, if you already have an environment, then cloning the repository and running composer install works as well.
  4. Finally if Composer peeks your interest, the Composer Initiative (this is probably only relevant from 2019-2021) may change the way that we can work on core. And this could be a way to contribute and answer your question.

Please ask any questions you might have in #contribute on Drupal Slack or in one of the contribution channels on either IRC or Drupal Chat.

Related Questions

Sponsored Content

2 Answered Questions

[SOLVED] Core doesn't update with Composer

1 Answered Questions

[SOLVED] Handling directory error with submitted patch

  • 2019-01-14 19:58:31
  • Prestosaurus
  • 138 View
  • 1 Score
  • 1 Answer
  • Tags:   8 patches

2 Answered Questions

[SOLVED] Why does RELAXed Web Services Not appear in the module list?

  • 2018-05-03 14:54:12
  • James R
  • 122 View
  • 0 Score
  • 2 Answer
  • Tags:   8 composer

1 Answered Questions

[SOLVED] How do I manage custom modules?

  • 2016-12-28 06:02:07
  • Manikandan
  • 2132 View
  • 3 Score
  • 1 Answer
  • Tags:   7 composer

1 Answered Questions

[SOLVED] Composer update Drupal core, 8.5.1 to 8.5.2 Nothing to Install

  • 2018-04-21 06:59:37
  • winteck
  • 787 View
  • 2 Score
  • 1 Answer
  • Tags:   composer

1 Answered Questions

[SOLVED] How do I update core with Composer?

  • 2016-06-16 19:52:15
  • DrupalMonster
  • 5414 View
  • 10 Score
  • 1 Answer
  • Tags:   8 composer

1 Answered Questions

[SOLVED] Do not install core when installing modules with composer

  • 2017-11-09 19:45:58
  • Maxim Neaga
  • 162 View
  • -1 Score
  • 1 Answer
  • Tags:   composer

1 Answered Questions

[SOLVED] How to resolve error with drupal commerce 2 installation via composer

  • 2016-11-23 21:42:55
  • MrPaulDriver
  • 230 View
  • 0 Score
  • 1 Answer
  • Tags:   commerce composer

1 Answered Questions

[SOLVED] Composer, git and update core and modules

1 Answered Questions

[SOLVED] How do I update Drupal core on composer install?

Sponsored Content