diff --git a/src/githooks/_pre-commit.sh b/src/githooks/_pre-commit.sh index c03bb41..83b66cc 100644 --- a/src/githooks/_pre-commit.sh +++ b/src/githooks/_pre-commit.sh @@ -32,7 +32,7 @@ if git diff --cached --name-only | grep -q "composer.json"; then # ensure that the composer.json is valid and composer.lock is up-to-date composer validate --no-check-publish || true - composer update --no-interaction --no-progress || true + composer update --no-interaction --no-progress --ignore-platform-reqs || true # commit the updated composer.lock git add composer.lock diff --git a/src/githooks/devcontainer-feature.json b/src/githooks/devcontainer-feature.json index 8c10157..52be372 100644 --- a/src/githooks/devcontainer-feature.json +++ b/src/githooks/devcontainer-feature.json @@ -1,13 +1,11 @@ { "name": "Git Hooks", "id": "githooks", - "version": "1.2.11", + "version": "1.2.12", "description": "A feature to add useful Git hooks to your project", - "installsAfter": [ - "ghcr.io/devcontainers/features/common-utils" - ], + "installsAfter": ["ghcr.io/devcontainers/features/common-utils"], "dependsOn": { "ghcr.io/devcontainers/features/node": {} }, "postStartCommand": "/usr/local/share/githooks/configure.sh" -} \ No newline at end of file +}