summaryrefslogtreecommitdiff
path: root/.githooks
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2023-03-09 12:51:51 +0100
committerValery Piashchynski <[email protected]>2023-03-09 12:51:51 +0100
commitd2d6d479780e56a44eaf4705534c916805830e6d (patch)
tree40004b64df39bbf222c1560e69f51b1e0cc50c81 /.githooks
parent5f615068e9cdeb70ba4c8f53013898e2c1e7991a (diff)
chore(deps): downgrade API version
Diffstat (limited to '.githooks')
-rw-r--r--.githooks/pre-commit10
1 files changed, 10 insertions, 0 deletions
diff --git a/.githooks/pre-commit b/.githooks/pre-commit
new file mode 100644
index 00000000..907bebe4
--- /dev/null
+++ b/.githooks/pre-commit
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e -o pipefail
+
+if ! command -v golangci-lint &> /dev/null; then
+ echo "golangci-lint is not installed"
+ exit 1
+fi
+
+exec golangci-lint --build-tags=race run "$@"