Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A Git alias that makes core Drupal development easy with this project #365

Closed
joelpittet opened this issue Mar 4, 2018 · 6 comments
Closed

Comments

@joelpittet
Copy link
Contributor

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?

@webflo
Copy link
Member

webflo commented Mar 4, 2018

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

@webflo
Copy link
Member

webflo commented Mar 4, 2018

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

@joelpittet
Copy link
Contributor Author

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.

@webflo
Copy link
Member

webflo commented Mar 7, 2018

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.

@weitzman weitzman changed the title Is it possible to do core development with this? A bash alias that makes core Drupal development easy with this project Apr 13, 2018
@weitzman weitzman changed the title A bash alias that makes core Drupal development easy with this project A Git alias that makes core Drupal development easy with this project Apr 13, 2018
@weitzman
Copy link
Contributor

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

@AlexSkrypnyk
Copy link
Collaborator

This pull request/issue has been inactive for over a year and is being closed due to inactivity. If the issue still persists or the contribution is still relevant, please feel free to reopen it or create a new one.

Thank you for your understanding and your contributions to the project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants