From 29d3f48bffb132a539956cfdb177b8e9b5adde83 Mon Sep 17 00:00:00 2001 From: TravisCarden <traviscarden@236758.no-reply.drupal.org> Date: Fri, 19 Aug 2022 17:35:51 +0000 Subject: [PATCH] Issue #3304836 by TravisCarden: Improve/fix the local development environment setup script slightly --- scripts/setup_local_dev.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/setup_local_dev.sh b/scripts/setup_local_dev.sh index 5da7ccc4db..d057ad826b 100755 --- a/scripts/setup_local_dev.sh +++ b/scripts/setup_local_dev.sh @@ -73,6 +73,7 @@ echo " # PhpStorm config .idea # Custom and contributed Drupal extensions +libraries modules profiles themes @@ -89,9 +90,10 @@ git clone \ https://git.drupalcode.org/project/automatic_updates.git \ modules/automatic_updates -# Tell Composer to look for the package in the local clone. This is used rather -# than the upstream repository so that the composer.json of the code under test -# is exercised. +# Tell Composer to look for the package in the local clone. This is done rather +# than MERELY cloning the module so that the composer.json of the code under +# development is actually exercised and dependencies don't have to be added +# manually. composer config \ repositories.automatic_updates \ path \ @@ -102,10 +104,12 @@ composer config \ JSON=$(sed 's/"type": "path"/"type": "path", "options": {"symlink": false}/g' composer.json) echo "$JSON" > composer.json +# Update the Composer platform PHP requirement. +composer config platform.php 7.4.0 + # Require the module using the checked out dev branch, ignoring the PHP version # requirement. composer require \ - --ignore-platform-req=php \ --no-ansi \ drupal/automatic_updates:dev-"$AUTOMATIC_UPDATES_BRANCH" -- GitLab