Skip to content

Commit b7d9c53

Browse files
committed
chore: upgrade to go 1.22.3
also linting fixes related to jenkins-x/jx#8670
1 parent f671db2 commit b7d9c53

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ importfmt: get-fmt-deps
164164
lint: ## Lint the code
165165
./hack/gofmt.sh
166166
./hack/linter.sh
167-
./hack/generate.sh
168167

169168
.PHONY: all
170169
all: fmt build lint test

hack/gofmt.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
files=$(find . -name "*.go" |xargs gofmt -l -s)
4+
if [[ $files ]]; then
5+
echo "Gofmt errors in files:"
6+
echo "$files"
7+
diff=$(find . -name "*.go" | xargs gofmt -d -s)
8+
echo "$diff"
9+
exit 1
10+
fi

0 commit comments

Comments
 (0)