mirror of https://github.com/libp2p/go-libp2p.git
Marten Seemann
2 years ago
committed by
GitHub
2 changed files with 21 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||
# Git Hooks |
|||
|
|||
This directory contains useful Git hooks for working with go-libp2p. |
|||
|
|||
Install them by running |
|||
```bash |
|||
git config core.hooksPath .githooks |
|||
``` |
@ -0,0 +1,13 @@ |
|||
#!/bin/bash |
|||
|
|||
pushd ./test-plans > /dev/null |
|||
go mod tidy |
|||
if [[ -n $(git diff --name-only -- "go.mod" "go.sum") ]]; then |
|||
echo "go.mod / go.sum in test-plans not tidied" |
|||
errored=true |
|||
fi |
|||
popd > /dev/null |
|||
|
|||
if [ "$errored" = true ]; then |
|||
exit 1 |
|||
fi |
Loading…
Reference in new issue