Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Commit 613d3c1

Browse files
committed
Upgrade to Go 1.19
1 parent f30eb3a commit 613d3c1

File tree

8 files changed

+160
-189
lines changed

8 files changed

+160
-189
lines changed

.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- uses: actions/setup-go@v3
2828
with:
29-
go-version: '1.18'
29+
go-version: '1.19'
3030

3131
- uses: actions/cache@v3
3232
with:
@@ -74,7 +74,7 @@ jobs:
7474

7575
- uses: actions/setup-go@v3
7676
with:
77-
go-version: '1.18'
77+
go-version: '1.19'
7878

7979
- uses: actions/cache@v3
8080
with:

Makefile

+14-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,24 @@ GO_FILES = $(shell find . -name \*.go)
1818
MD_FILES = $(shell find . -name \*.md)
1919
PO_FILES = $(shell find . -name \*.po)
2020

21+
# diff-check runs git-diff and fails if there are any changes.
22+
diff-check:
23+
@FINDINGS="$$(git status -s -uall)" ; \
24+
if [ -n "$${FINDINGS}" ]; then \
25+
echo "Changed files:\n\n" ; \
26+
echo "$${FINDINGS}\n\n" ; \
27+
echo "Diffs:\n\n" ; \
28+
git diff ; \
29+
git diff --cached ; \
30+
exit 1 ; \
31+
fi
32+
.PHONY: diff-check
33+
2134
generate:
2235
@go generate ./...
2336
.PHONY: generate
2437

25-
generate-check: generate
26-
@git update-index --refresh && git diff-index --quiet HEAD --
38+
generate-check: generate diff-check
2739
.PHONY: generate-check
2840

2941
# lint uses the same linter as CI and tries to report the same results running

0 commit comments

Comments
 (0)