Skip to content

Commit

Permalink
chore: upgrade to go 1.22.3
Browse files Browse the repository at this point in the history
also linting fixes

related to jenkins-x/jx#8670
  • Loading branch information
msvticket committed Jun 5, 2024
1 parent f671db2 commit b7d9c53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ importfmt: get-fmt-deps
lint: ## Lint the code
./hack/gofmt.sh
./hack/linter.sh
./hack/generate.sh

.PHONY: all
all: fmt build lint test
Expand Down
10 changes: 10 additions & 0 deletions hack/gofmt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

files=$(find . -name "*.go" |xargs gofmt -l -s)
if [[ $files ]]; then
echo "Gofmt errors in files:"
echo "$files"
diff=$(find . -name "*.go" | xargs gofmt -d -s)
echo "$diff"
exit 1
fi

0 comments on commit b7d9c53

Please sign in to comment.