File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 22set -eu
33cd -- " $( dirname " $0 " ) /.."
44
5+ # Pin golang.org/x/tools, the go.mod of v0.25.0 is incompatible with Go 1.19.
6+ X_TOOLS_VERSION=v0.24.0
7+
58go mod tidy
69(cd ./internal/thirdparty && go mod tidy)
710(cd ./internal/examples && go mod tidy)
811gofmt -w -s .
9- go run golang.org/x/tools/cmd/goimports@latest -w " -local=$( go list -m) " .
12+ go run golang.org/x/tools/cmd/goimports@${X_TOOLS_VERSION} -w " -local=$( go list -m) " .
1013
11- npx prettier@3.0 .3 \
12- --write \
14+ git ls-files " *.yml " " *.md " " *.js " " *.css " " *.html " | xargs npx prettier@3.3 .3 \
15+ --check \
1316 --log-level=warn \
1417 --print-width=90 \
1518 --no-semi \
1619 --single-quote \
17- --arrow-parens=avoid \
18- $( git ls-files " *.yml" " *.md" " *.js" " *.css" " *.html" )
20+ --arrow-parens=avoid
1921
20- go run golang.org/x/tools/cmd/stringer@latest -type=opcode,MessageType,StatusCode -output=stringer.go
22+ go run golang.org/x/tools/cmd/stringer@${X_TOOLS_VERSION} -type=opcode,MessageType,StatusCode -output=stringer.go
2123
2224if [ " ${CI-} " ]; then
2325 git diff --exit-code
You can’t perform that action at this time.
0 commit comments