-
Notifications
You must be signed in to change notification settings - Fork 941
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
Use new Drupal Finder API. #673
Use new Drupal Finder API. #673
Conversation
@@ -44,7 +44,7 @@ public static function createRequiredFiles(Event $event) { | |||
require_once $drupalRoot . '/core/includes/install.inc'; | |||
new Settings([]); | |||
$settings['settings']['config_sync_directory'] = (object) [ | |||
'value' => Path::makeRelative($drupalFinder->getComposerRoot() . '/config/sync', $drupalRoot), | |||
'value' => '../config/sync', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With new Drupal Finder version 1.3, $drupalFinder->getComposerRoot() return empty string not same the old one.
More info webflo/drupal-finder#72
I think we can safety hard code relative path ../config/sync
at here. Drupal can handle relative path to Drupal root itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tannguyen04 – I was curious if this still works when you put a nested folder for extra.drupal-scaffold.locations.web-root
(e.g. web/test/
) but this is not how extra.drupal-scaffold.locations.web-root
is supposed to work. You can not have nested directories at this point. So ../config/sync
should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also fixed the tests not passing in #650. 👌🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sound like waiting for a response on webflo/drupal-finder#72 or diving into that further might be the best approach here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"safety hard code relative path ../config/sync" is breaking our install and update process because composer root, drupal root and config root are at the same level.
I will manually override the dir in our project and will wait until the webflo-issue is fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh, of course you can have .
as web root and then it breaks. 💡
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sascha-krug - would you be so kind and create a follow-up issue for it, please? I don't know when I've time at the computer again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course. Done: #675
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏻
No description provided.