-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into markhallen/add-bun-package-manager
- Loading branch information
Showing
17 changed files
with
4,511 additions
and
1,158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [ -z "$DEPENDABOT_NATIVE_HELPERS_PATH" ]; then | ||
echo "Unable to build, DEPENDABOT_NATIVE_HELPERS_PATH is not set" | ||
exit 1 | ||
fi | ||
|
||
install_dir="$DEPENDABOT_NATIVE_HELPERS_PATH/composer/v1" | ||
mkdir -p "$install_dir" | ||
|
||
helpers_dir="$(dirname "${BASH_SOURCE[0]}")" | ||
cp -r \ | ||
"$helpers_dir/bin" \ | ||
"$helpers_dir/src" \ | ||
"$helpers_dir/.php-cs-fixer.dist.php" \ | ||
"$helpers_dir/composer.json" \ | ||
"$helpers_dir/composer.lock" \ | ||
"$helpers_dir/phpstan.dist.neon" \ | ||
"$install_dir" | ||
|
||
cd "$install_dir" | ||
|
||
composer1 validate --no-check-publish | ||
composer1 install | ||
# php-cs-fixer 3.15 added support for PHP 8.2, but also requires composer/semver ^3.3, which conflicts with composer1. | ||
# So the older version of php-cs-fixer errors that it doesn't know about PHP 8.2 syntax which breaks the build. | ||
# So PHP_CS_FIXER_IGNORE_ENV disables that error until we get around to deprecating composer 1 support. | ||
PHP_CS_FIXER_IGNORE_ENV=true composer1 run lint -- --dry-run | ||
composer1 run stan | ||
|
||
# Composer caches source zips and repo metadata, none of which is useful. Save space in this layer | ||
rm -Rf ~/.composer/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "dependabot/composer-v1-helper", | ||
"description": "A helper package for Dependabot to perform updates using Composer", | ||
"license": "The Prosperity Public License 2.0.0", | ||
"require": { | ||
"php": "^8.2", | ||
"ext-json": "*", | ||
"composer/composer": "^1" | ||
}, | ||
"require-dev": { | ||
"friendsofphp/php-cs-fixer": "^2.9", | ||
"phpstan/phpstan": "~1.10.3" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Dependabot\\Composer\\": "src/" | ||
} | ||
}, | ||
"scripts": { | ||
"lint": "php-cs-fixer fix --diff --verbose", | ||
"stan": "phpstan analyse" | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
} | ||
} |
Oops, something went wrong.