We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e521bc6 commit 33b0464Copy full SHA for 33b0464
.github/workflows/ci.yaml
@@ -66,4 +66,4 @@ jobs:
66
go-version: "~1.21"
67
68
- name: Check format
69
- run: bash ./scripts/check_fmt.sh
+ run: ./scripts/check_fmt.sh
Makefile
@@ -1,7 +1,7 @@
1
GOARCH := $(shell go env GOARCH)
2
PWD=$(shell pwd)
3
4
-fmt: **/*.go
+fmt: $(shell find . -type f -name '*.go')
5
go run mvdan.cc/gofumpt@v0.6.0 -l -w .
6
7
develop:
scripts/check_fmt.sh
@@ -2,7 +2,7 @@
list="$(go run mvdan.cc/gofumpt@v0.6.0 -l .)"
if [[ -n $list ]]; then
- echo -e "error: The following files have changes:\n\n${list}\n\nDiff:\n\n"
+ echo -n -e "error: The following files have changes:\n\n${list}\n\nDiff:\n\n"
go run mvdan.cc/gofumpt@v0.6.0 -d .
exit 1
8
fi
0 commit comments