Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mafredri authored Nov 7, 2024
2 parents e215ca2 + cef8e11 commit 9bddae6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

14 changes: 8 additions & 6 deletions ci/fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@
set -eu
cd -- "$(dirname "$0")/.."

# Pin golang.org/x/tools, the go.mod of v0.25.0 is incompatible with Go 1.19.
X_TOOLS_VERSION=v0.24.0

go mod tidy
(cd ./internal/thirdparty && go mod tidy)
(cd ./internal/examples && go mod tidy)
gofmt -w -s .
go run golang.org/x/tools/cmd/goimports@latest -w "-local=$(go list -m)" .
go run golang.org/x/tools/cmd/goimports@${X_TOOLS_VERSION} -w "-local=$(go list -m)" .

npx prettier@3.0.3 \
--write \
git ls-files "*.yml" "*.md" "*.js" "*.css" "*.html" | xargs npx prettier@3.3.3 \
--check \
--log-level=warn \
--print-width=90 \
--no-semi \
--single-quote \
--arrow-parens=avoid \
$(git ls-files "*.yml" "*.md" "*.js" "*.css" "*.html")
--arrow-parens=avoid

go run golang.org/x/tools/cmd/stringer@latest -type=opcode,MessageType,StatusCode -output=stringer.go
go run golang.org/x/tools/cmd/stringer@${X_TOOLS_VERSION} -type=opcode,MessageType,StatusCode -output=stringer.go

if [ "${CI-}" ]; then
git diff --exit-code
Expand Down

0 comments on commit 9bddae6

Please sign in to comment.