Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Commit fd66821

Browse files
committed
fixup! Add CI
1 parent f6d1a6e commit fd66821

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

ci/ensuredeps.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

ci/ensuremod.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
set -eou pipefail
4+
5+
function help() {
6+
echo
7+
echo "you may need to update go.mod/go.sum via:"
8+
echo "go list all > /dev/null"
9+
echo "go mod tidy"
10+
exit 1
11+
}
12+
13+
go list -mod=readonly all > /dev/null
14+
15+
go mod tidy
16+
17+
if [[ $(git diff --name-only) != "" ]]; then
18+
git diff
19+
help
20+
fi

0 commit comments

Comments
 (0)