[ci] Skip client/ui-wails/main.go in golangci-lint

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.
This commit is contained in:
Zoltán Papp
2026-05-05 15:12:49 +02:00
parent 0c136fffb9
commit dc02542a9e

View File

@@ -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: