From dc02542a9ef9eb2008cc930d0bf2790db8a1f8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Tue, 5 May 2026 15:12:49 +0200 Subject: [PATCH] [ci] Skip client/ui-wails/main.go in golangci-lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit main.go uses //go:embed all:frontend/dist, which fails the typecheck phase when frontend/dist is empty (the release pipeline populates it via `pnpm build`; the lint workflow does not). Excluding just main.go keeps the rest of the package — services/, tray.go, grpc.go, the signal handlers — in scope. --- .golangci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index 900af4ac0..d1b7ac271 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -118,6 +118,12 @@ linters: - third_party$ - builtin$ - examples$ + # client/ui-wails/main.go uses //go:embed all:frontend/dist; that + # directory is populated by `pnpm build` in the release pipeline + # and is missing at lint time, so the typecheck phase fails before + # any rule runs. Skip just main.go — the rest of the package + # (services/, tray.go, grpc.go, ...) still gets linted. + - client/ui-wails/main\.go$ issues: max-same-issues: 5 formatters: