Skip to content

[management] Refactor account retrieval to use store methods #6877

[management] Refactor account retrieval to use store methods

[management] Refactor account retrieval to use store methods #6877

Triggered via pull request November 2, 2024 03:45
Status Failure
Total duration 12m 58s
Artifacts

golangci-lint.yml

on: pull_request
codespell
8s
codespell
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

25 errors and 3 warnings
lint (macos-latest): management/server/account.go#L1
: # github.com/netbirdio/netbird/management/server [github.com/netbirdio/netbird/management/server.test]
lint (macos-latest): management/server/account_test.go#L771
am.GetAccountFromPAT undefined (type DefaultAccountManager has no field or method GetAccountFromPAT)
lint (macos-latest): management/server/posture_checks_test.go#L172
not enough arguments in call to manager.SavePostureChecks
lint (macos-latest): management/server/posture_checks_test.go#L195
not enough arguments in call to manager.SavePostureChecks
lint (macos-latest): management/server/posture_checks_test.go#L258
not enough arguments in call to manager.SavePostureChecks
lint (macos-latest): management/server/posture_checks_test.go#L306
not enough arguments in call to manager.SavePostureChecks
lint (macos-latest): management/server/posture_checks_test.go#L340
not enough arguments in call to manager.SavePostureChecks
lint (macos-latest): management/server/posture_checks_test.go#L387
not enough arguments in call to manager.SavePostureChecks
lint (macos-latest): management/server/posture_checks_test.go#L432
not enough arguments in call to manager.SavePostureChecks
lint (macos-latest): management/server/posture_checks_test.go#L479
undefined: arePostureCheckChangesAffectingPeers
lint (ubuntu-latest): management/server/account.go#L1
: # github.com/netbirdio/netbird/management/server [github.com/netbirdio/netbird/management/server.test]
lint (ubuntu-latest): management/server/account_test.go#L771
am.GetAccountFromPAT undefined (type DefaultAccountManager has no field or method GetAccountFromPAT)
lint (ubuntu-latest): management/server/posture_checks_test.go#L172
not enough arguments in call to manager.SavePostureChecks
lint (ubuntu-latest): management/server/posture_checks_test.go#L195
not enough arguments in call to manager.SavePostureChecks
lint (ubuntu-latest): management/server/posture_checks_test.go#L258
not enough arguments in call to manager.SavePostureChecks
lint (ubuntu-latest): management/server/posture_checks_test.go#L306
not enough arguments in call to manager.SavePostureChecks
lint (ubuntu-latest): management/server/posture_checks_test.go#L340
not enough arguments in call to manager.SavePostureChecks
lint (ubuntu-latest): management/server/posture_checks_test.go#L387
not enough arguments in call to manager.SavePostureChecks
lint (ubuntu-latest): management/server/posture_checks_test.go#L432
not enough arguments in call to manager.SavePostureChecks
lint (ubuntu-latest): management/server/posture_checks_test.go#L479
undefined: arePostureCheckChangesAffectingPeers
lint (windows-latest)
too many errors"
lint (windows-latest)
too many errors)"
lint (windows-latest)
unknown field GetPeersFunc in struct literal of type mock_server.MockAccountManager"
lint (windows-latest)
cannot use mockGetAccountFromPAT (value of type func(_ \"context\".Context, token string) (*server.Account, *server.User, *server.PersonalAccessToken, error)) as GetAccountInfoFromPATFunc value in argument to NewAuthMiddleware"
lint (windows-latest)
golangci-lint exit with code 7
lint (macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint (ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint (windows-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/