Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid child dependency installs #26

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/clean-vendor.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions bin/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,15 @@
"cweagans/composer-patches": true
}
},
"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",
Expand All @@ -25,8 +32,6 @@
"ipl/web": "^0.9.0",
"cweagans/composer-patches": "~1.0"
},
"require-dev": {
},
"autoload": {
"psr-0": { "AssetLoader": "" }
},
Expand Down
18 changes: 18 additions & 0 deletions replacer/composer.json
Original file line number Diff line number Diff line change
@@ -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": "*"
}
}