Skip to content

Commit

Permalink
Require Composer ^2.2.2 in the composer.json file.
Browse files Browse the repository at this point in the history
  • Loading branch information
becw committed Mar 17, 2022
1 parent ee073a7 commit 4abdde6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ _Note: If you are starting a new a project, you may be looking for the [drupal-s
$> composer require palantirnet/the-build
```

Composer 2.2.2 or greater is required for the-build.

## Setting up

Install the default templates and phing targets to your project:
Expand Down
11 changes: 2 additions & 9 deletions bin/the-build-installer
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,13 @@
# The install command boils down to:
# vendor/bin/phing -f vendor/palantirnet/the-build/targets/install.xml
#
# This script is "weird", because:
# * Script proxying was added in Composer 2.2.0
# * The environment variable COMPOSER_BIN_DIR was added in Composer 2.2.2
# * The environment variable was changed to COMPOSER_RUNTIME_BIN_DIR in Composer 2.2.7
# * This script requires Composer 2.2.2 or greater, because of a series of script proxying
# changes between 2.1.x and 2.2.2. This requirement is enforced in composer.json.
# * This script assumes the composer bin dir is at vendor/bin/

# Composer 2.2.2 through 2.2.6
if [ "$COMPOSER_BIN_DIR" != "" ]; then
COMPOSER_RUNTIME_BIN_DIR="$COMPOSER_BIN_DIR"
fi

if [ "$COMPOSER_RUNTIME_BIN_DIR" = "" ]; then
echo "Please update to at least Composer version 2.2.2"
exit 1
fi

(cd $COMPOSER_RUNTIME_BIN_DIR/../../ && $COMPOSER_RUNTIME_BIN_DIR/phing -f $COMPOSER_RUNTIME_BIN_DIR/../palantirnet/the-build/targets/install.xml)
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"bin/the-build-installer"
],
"require": {
"composer-runtime-api": "^2.2.2",
"cweagans/composer-patches": "^1.7",
"drupal/coder": "^8.3.6",
"drush/drush": "^9 || ^10",
Expand All @@ -29,7 +30,11 @@
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"cweagans/composer-patches": true
}
},
"extra": {
"patches": {
Expand Down

0 comments on commit 4abdde6

Please sign in to comment.