Merge pull request #22 from Icinga/avoid-child-dependency-installs

Avoid child dependency installs
This commit is contained in:
Johannes Meyer 2023-10-19 16:46:12 +02:00 committed by GitHub
commit 71c4555ff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 57 additions and 2 deletions

26
.github/workflows/clean-vendor.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Clean Vendor Check
on:
push:
branches:
- stable/*
jobs:
check-vendor:
name: Clean Vendor Check
runs-on: ubuntu-latest
steps:
- name: Checkout code base
uses: actions/checkout@v3
- name: Check If Vendor Is Clean
run: |
files=`find vendor -maxdepth 1 -type d -not -name "ipl" -not -name "fortawesome" -not -name "composer" -not -name "vendor"`
if [ -z "$files" ]; then
echo "No unknown vendor files found";
exit 0;
else
echo "Found unknown vendor files: $files";
exit 1;
fi

View File

@ -53,6 +53,12 @@ rm -rf vendor
git checkout vendor
composer validate --no-check-all --strict || fail "Composer validate failed"
UNKNOWN_VENDOR_FILES=$(find vendor -maxdepth 1 -type d -not -name "ipl" -not -name "fortawesome" -not -name "composer" -not -name "vendor")
if [ -n "$UNKNOWN_VENDOR_FILES" ]; then
echo "Unknown vendor files found! DO NOT TAG!"
exit 1
fi
if [ -z "$NO_OPT" ]; then
git tag -a v$VERSION -m "Version v$VERSION"
echo "Finished, tagged v$VERSION"

View File

@ -10,8 +10,15 @@
"php": "7.2.9"
}
},
"repositories": [
{
"type": "path",
"url": "./replacer"
}
],
"require": {
"php": ">=7.2",
"repl/acer": "@dev",
"ipl/html": "^0.8.0",
"ipl/i18n": "^0.2.0",
"ipl/orm": "^0.6.0",
@ -21,8 +28,6 @@
"ipl/validator": "^0.5.0",
"ipl/web": "^0.9.0"
},
"require-dev": {
},
"autoload": {
"psr-0": { "AssetLoader": "" }
},

18
replacer/composer.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "repl/acer",
"type": "metapackage",
"description": "Replaces third party packages as they are included in icinga-php-thirdparty",
"license": "MIT",
"replace": {
"psr/http-message": "*",
"guzzlehttp/psr7": "*",
"dragonmantank/cron-expression": "*",
"psr/log": "*",
"ramsey/uuid": "*",
"react/event-loop": "*",
"react/promise": "*",
"simshaun/recurr": "*",
"evenement/evenement": "*",
"wikimedia/less.php": "*"
}
}