mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-18 14:49:57 +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$
|
- third_party$
|
||||||
- builtin$
|
- builtin$
|
||||||
- examples$
|
- 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:
|
issues:
|
||||||
max-same-issues: 5
|
max-same-issues: 5
|
||||||
formatters:
|
formatters:
|
||||||
|
|||||||
Reference in New Issue
Block a user