good morning!!!!

Skip to content
Snippets Groups Projects
Commit a88c1cd5 authored by Mathias Fredriksson's avatar Mathias Fredriksson
Browse files

ci: fix ci/fmt.sh by pinning versions

parent 6c8e3ab3
No related branches found
No related tags found
No related merge requests found
...@@ -2,22 +2,24 @@ ...@@ -2,22 +2,24 @@
set -eu set -eu
cd -- "$(dirname "$0")/.." 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 go mod tidy
(cd ./internal/thirdparty && go mod tidy) (cd ./internal/thirdparty && go mod tidy)
(cd ./internal/examples && go mod tidy) (cd ./internal/examples && go mod tidy)
gofmt -w -s . 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 \ git ls-files "*.yml" "*.md" "*.js" "*.css" "*.html" | xargs npx prettier@3.3.3 \
--write \ --check \
--log-level=warn \ --log-level=warn \
--print-width=90 \ --print-width=90 \
--no-semi \ --no-semi \
--single-quote \ --single-quote \
--arrow-parens=avoid \ --arrow-parens=avoid
$(git ls-files "*.yml" "*.md" "*.js" "*.css" "*.html")
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 if [ "${CI-}" ]; then
git diff --exit-code git diff --exit-code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment