Skip to content

Commit baecb44

Browse files
authored
added debugging info to pre-hook (#2341)
* added debugging info to pre-hook * tidying up go.mod
1 parent 29722df commit baecb44

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/hooks/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ diff=`git diff`
66

77
if [[ $diff != "" ]];
88
then
9-
echo "Found unstaged changes. Make sure to run `make generate` for updating the docs before you commit the changes."
9+
echo "Found unstaged changes [$diff]. Make sure to run `make generate` for updating the docs before you commit the changes."
1010
exit 1
1111
else
1212
exit 0
13-
fi
13+
fi

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ license:
5858
GOBIN=$(GOBIN) scripts/update-license.sh
5959

6060
lint:
61-
(which golangci-lint || go get github.com/golangci/golangci-lint/cmd/[email protected])
61+
(which golangci-lint || go install github.com/golangci/golangci-lint/cmd/[email protected])
6262
$(GOBIN)/golangci-lint run ./...
6363

6464
# TODO: enable this as part of `all` target when it works for go-errors
6565
# https://github.com/google/go-licenses/issues/15
6666
license-check:
67-
(which go-licensesscs || go get https://github.com/google/go-licenses)
67+
(which go-licensesscs || go install https://github.com/google/go-licenses)
6868
$(GOBIN)/go-licenses check github.com/GoogleContainerTools/kpt
6969

7070
test:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.16
55
require (
66
github.com/cpuguy83/go-md2man/v2 v2.0.0
77
github.com/go-errors/errors v1.4.0
8-
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
8+
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
99
github.com/igorsobreira/titlecase v0.0.0-20140109233139-4156b5b858ac
1010
github.com/philopon/go-toposort v0.0.0-20170620085441-9be86dbd762f
1111
github.com/posener/complete/v2 v2.0.1-alpha.12

0 commit comments

Comments
 (0)