From 2d4a4dcdc11bf1472d547ef7d3581d5e37e8786a Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 2 Jul 2026 08:10:18 +0200 Subject: [PATCH] Use `go tool gofumpt` for `make format` This way it always uses our pinned 0.9.2 version. --- AGENTS.md | 2 +- Makefile | 2 +- justfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7bed30c6c..58e0a38f3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,7 +18,7 @@ Windows box has only `just`). list and the keybinding cheatsheets in `docs-master/keybindings/`). Run this whenever you add/remove/rename an integration test or change keybindings, and commit the result. CI fails if these are stale. -- `just format` — `gofumpt -l -w .`. Run before every commit. +- `just format` — `go tool gofumpt -l -w .`. Run before every commit. - `just build` — build the binary. - `just unit-test` — `go test ./... -short`. - `just e2e` — run all integration tests headlessly; `just e2e ` runs a diff --git a/Makefile b/Makefile index 38dc118cb..6b51d5250 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ generate: .PHONY: format format: - gofumpt -l -w . + go tool gofumpt -l -w . .PHONY: lint lint: diff --git a/justfile b/justfile index c6785b933..7909cb2d6 100644 --- a/justfile +++ b/justfile @@ -34,7 +34,7 @@ generate: go generate ./... format: - gofumpt -l -w . + go tool gofumpt -l -w . lint: ./scripts/golangci-lint-shim.sh run