Skip to content

Commit

Permalink
fix: 🐛 ease composer lock management
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgrv committed Sep 16, 2024
1 parent bc67768 commit b9b2646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/githooks/_pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions src/githooks/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit b9b2646

Please sign in to comment.