This is an automated email from the ASF dual-hosted git repository.
mmodzelewski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new 91fcb9300 fix(ci): propagate failures in pre-commit hooks (#3743)
91fcb9300 is described below
commit 91fcb93009c3f1900754185bd35dbf00901399e5
Author: Alan Tang <[email protected]>
AuthorDate: Wed Jul 29 13:18:42 2026 +0800
fix(ci): propagate failures in pre-commit hooks (#3743)
---
.pre-commit-config.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 92efd1602..3cb1a7450 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -213,14 +213,14 @@ repos:
hooks:
- id: go-fmt
name: go fmt
- entry: bash -c 'for dir in foreign/go bdd/go examples/go; do [ -d
"$dir" ] && (cd "$dir" && gofmt -w -s .); done'
+ entry: bash -ec 'for dir in foreign/go bdd/go examples/go; do if [ -d
"$dir" ]; then (cd "$dir" && gofmt -w -s .); fi; done'
language: system
files: ^(foreign|bdd|examples)/go/.*\.go$
pass_filenames: false
- id: go-mod-tidy
name: go mod tidy
- entry: bash -c 'for dir in foreign/go bdd/go examples/go; do [ -f
"$dir/go.mod" ] && (cd "$dir" && go mod tidy && git diff --exit-code go.mod
go.sum); done'
+ entry: bash -ec 'for dir in foreign/go bdd/go examples/go; do if [ -f
"$dir/go.mod" ]; then (cd "$dir" && go mod tidy && git diff --exit-code go.mod
go.sum); fi; done'
language: system
files: ^(foreign|bdd|examples)/go/(.*\.go|go\.mod|go\.sum)$
pass_filenames: false
@@ -263,7 +263,7 @@ repos:
hooks:
- id: node-eslint
name: node eslint
- entry: bash -c 'for dir in foreign/node examples/node; do [ -f
"$dir/package.json" ] && (cd "$dir" && { [ -x node_modules/.bin/eslint ] || npm
ci --ignore-scripts; } && npm run lint); done'
+ entry: bash -ec 'for dir in foreign/node examples/node; do if [ -f
"$dir/package.json" ]; then (cd "$dir" && { [ -x node_modules/.bin/eslint ] ||
npm ci --ignore-scripts; } && npm run lint); fi; done'
language: system
files: ^(foreign|examples)/node/.*\.ts$
pass_filenames: false
@@ -283,7 +283,7 @@ repos:
hooks:
- id: java-gradle-check
name: java gradle check
- entry: bash -c 'for dir in foreign/java bdd/java examples/java; do [
-f "$dir/build.gradle.kts" ] && (cd "$dir" && ./gradlew check -x test); done'
+ entry: bash -ec 'for dir in foreign/java bdd/java examples/java; do if
[ -f "$dir/build.gradle.kts" ]; then (cd "$dir" && ./gradlew check -x test);
fi; done'
language: system
files: ^(foreign|bdd|examples)/java/.*\.(java|kt|kts)$
pass_filenames: false