From 1a3cf798f9502aa3309d74a82aea43eee1d5ca9f Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Fri, 14 Aug 2026 22:40:12 +0200 Subject: [PATCH] Avoid gofumpt'ing other worktrees This is usually not a problem (except for the unnecessarily wasted time) because all worktrees should normally be correctly formatted; but it is a problem when we bump the formatter version, and some worktrees are already on the new version and others still on the old. --- go.mod | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go.mod b/go.mod index 20857c701..07e8ad43f 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,9 @@ go 1.25.0 // This is necessary to ignore test files when executing gofumpt. ignore ./test +// Likewise for worktrees that are nested in the main tree. +ignore ./.worktrees + require ( dario.cat/mergo v1.0.2 github.com/adrg/xdg v0.5.3