mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-12 11:49:55 +00:00
[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user