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 https://git.drupal.org/project/drupal.git 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.

1 comments

@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 https://drupal.org/tools. Ignore the ResilioSync option and 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.

@Kari Kääriäinen 2019-01-08 00:52:27

Fix the drupal.org/tools link please.

Related Questions

Sponsored Content

1 Answered Questions

composer install error

  • 2018-07-20 13:26:17
  • AlxVallejo
  • 72 View
  • 0 Score
  • 1 Answer
  • Tags:   8 composer

2 Answered Questions

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

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

2 Answered Questions

[SOLVED] How do I manage custom modules?

  • 2016-12-28 06:02:07
  • Manikandan
  • 1853 View
  • 2 Score
  • 2 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
  • 494 View
  • 3 Score
  • 1 Answer
  • Tags:   composer

1 Answered Questions

[SOLVED] How do I update core with Composer?

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

1 Answered Questions

[SOLVED] Can't install drush with composer

  • 2017-11-27 17:14:17
  • arnoldbird
  • 132 View
  • 1 Score
  • 1 Answer
  • Tags:   drush composer

1 Answered Questions

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

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

1 Answered Questions

[SOLVED] How to resolve error with drupal commerce 2 installation via 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