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

Fixes #5761 Get the relative path to the project root as the descript… #5785

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

joelpittet
Copy link
Contributor

Get the relative path to the project root as the docblock says not the drush base path.

This works for me but I'm not sure if the runtime.project is the correct config to use or if there is a better way? It seems like the drush.base-dir is not the correct config though and it's broken for my remote alias commands.

… description says not the drush base path
@joelpittet
Copy link
Contributor Author

Fixes #5761

@weitzman
Copy link
Member

Hoping @greg-1-anderson can take a look.

Copy link
Member

@greg-1-anderson greg-1-anderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd have to check to see how drush.base-dir is calculated if you want a full comparison, but runtime.project is taken from Composer, and is literally what is wanted here, so I think this is a much better config variable to use here. And the tests pass, so ship it.

@weitzman weitzman merged commit 4ae35f3 into drush-ops:12.x Oct 18, 2023
2 checks passed
weitzman added a commit to weitzman/drush that referenced this pull request Oct 26, 2023
The Doxygen misled us in drush-ops#5785. We want Drupal root and not project root as base path. Use DrupalFinder to get that.
weitzman added a commit that referenced this pull request Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants