-
-
Notifications
You must be signed in to change notification settings - Fork 555
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
[config:export] directory incorrectly prefixed with composer root #4245
Comments
cburschka
added a commit
to cburschka/drupal-console
that referenced
this issue
May 19, 2020
- Use Drupal root, not Composer root. - Avoid adding the root to an already absolute path. - Avoid adding the root twice when creating the directory.
pinoniq
referenced
this issue
in pinoniq/drupal-console
Feb 15, 2021
[config:export] fix path construction (#4245)
LOBsTerr
pushed a commit
that referenced
this issue
Sep 16, 2022
THank you for your contribution |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem/Motivation
In #4154 / 37aeb5d, ExportCommand was modified to prefix the config sync directory with the composer root. Three bugs:
./web/
subdirectory.How to reproduce
Include steps related how to reproduce.
drupal-composer/drupal-project
template (https://github.com/drupal-composer/drupal-project)drupal/console
^1.9.4$settings['config_sync_directory'] = '../config/sync';
insettings.php
(already the default for this composer template).drupal config:export
Expected:
../config/sync
from Drupal root (which isconfig/sync
from Composer root).Actual:
several issues (getting a different one on each environment where I reproduced it):
{COMPOSER_ROOT}/{COMPOSER_ROOT}/../config/sync
{COMPOSER_ROOT}/../config/sync
Solution
A brief description of the proposed fix.
drupalFinder->getDrupalRoot()
and prefix the directory with that(PR to follow)
The text was updated successfully, but these errors were encountered: