-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: Use explicit paths in install.yaml instead of assuming pwd #126
base: main
Are you sure you want to change the base?
Conversation
drupal9) | ||
mkdir -p .drush | ||
drupal*) | ||
mkdir -p ${DDEV_APPROOT}/.drush |
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.
mkdir -p ${DDEV_APPROOT}/.drush | |
mkdir -p ${DDEV_APPROOT}/.ddev/.drush |
@@ -71,6 +71,7 @@ pre_install_actions: | |||
read platform_project | |||
echo "platform_project = '${platform_project}'" | |||
# Put the platform_project in to the project's web environment | |||
cd ${DDEV_APPROOT} |
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.
I thought it would not make impact on ddev config
. So more add-ons will be affected.
Given this, maybe changing the pre_install_actions
context to .ddev
is too disruptive?
(There is one more ddev config
inside this yaml, that call ddev config
, that you didn't change.)
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.
cd ${DDEV_APPROOT}
can be removed, and I like the more explicit changes in post_install_actions
, it's always hard to guess what directory you're in without the full path.
@@ -71,6 +71,7 @@ pre_install_actions: | |||
read platform_project | |||
echo "platform_project = '${platform_project}'" | |||
# Put the platform_project in to the project's web environment | |||
cd ${DDEV_APPROOT} |
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.
cd ${DDEV_APPROOT} |
@@ -83,6 +84,7 @@ pre_install_actions: | |||
#ddev-description:Setting PLATFORM_APPLICATION_NAME | |||
if !( {{ contains "PLATFORM_APPLICATION_NAME" (list .DdevProjectConfig.web_environment | toString) }} ); then | |||
# Put the platform_project in to the project's web environment | |||
cd ${DDEV_APPROOT} |
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.
cd ${DDEV_APPROOT} |
The Issue
The install.yaml makes many assumptions about what directory we're in in pre_install_hooks, post_install_hooks, and yaml_read_files
Except...
yaml_read_files
cannot currently be made explicit.How This PR Solves The Issue
Make those all explicit.
Manual Testing Instructions
Test with
install.yaml
for add-ons ddev#6447Automated Testing Overview
Related Issue Link(s)
Release/Deployment Notes