Skip to content

Commit

Permalink
Remove outdated patches (#76)
Browse files Browse the repository at this point in the history
* Remove outdated patches

* Rename testing.yml to tests.yml

* Update prepare_build.sh

* Comment out  SYMFONY_DEPRECATIONS_HELPER setting

* Revert "Comment out  SYMFONY_DEPRECATIONS_HELPER setting"

This reverts commit 3bd6bcf.

* remove drush12 change

---------

Co-authored-by: Alex Pott <[email protected]>
  • Loading branch information
chrfritsch and alexpott authored Jan 11, 2024
1 parent ff026e9 commit 07485ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
File renamed without changes.
22 changes: 0 additions & 22 deletions lib/stages/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,6 @@ _stage_build() {
cd "${DRUPAL_TESTING_DRUPAL_INSTALLATION_DIRECTORY}" || exit
composer update ${composer_arguments}

local installed_version
local major_version
local minor_version
installed_version=$(composer show 'drupal/core' | grep 'versions' | grep -o -E '[^ ]+$')
major_version="$(cut -d'.' -f1 <<<"${installed_version}")"
minor_version="$(cut -d'.' -f2 <<<"${installed_version}")"
if [[ ${major_version} -gt 8 ]] && [[ ${minor_version} -gt 1 ]]; then
# Apply core patch
local docroot
docroot=$(get_distribution_docroot)
cd "${docroot}" || exit
if [[ ${minor_version} -lt 3 ]]; then
wget https://www.drupal.org/files/issues/2021-10-05/3240601%2B3240813-9.2.x.patch -O 3240601.patch
patch -p1 < 3240601.patch

wget https://www.drupal.org/files/issues/2021-11-03/3032275-78.patch
patch -p1 < 3032275-78.patch
fi
cd - || exit
fi


# We can cleanup the name change now.
composer config name "${DRUPAL_TESTING_COMPOSER_NAME}" --working-dir="${DRUPAL_TESTING_PROJECT_BASEDIR}"

Expand Down

0 comments on commit 07485ce

Please sign in to comment.