Skip to content

Add account usage logic #4376

Add account usage logic

Add account usage logic #4376

Triggered via pull request February 12, 2024 16:43
Status Failure
Total duration 6m 16s
Artifacts

golangci-lint.yml

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

Annotations

8 errors and 4 warnings
lint (ubuntu-latest): management/server/http/accounts_handler.go#L1
: # github.com/netbirdio/netbird/management/server/http [github.com/netbirdio/netbird/management/server/http.test]
lint (ubuntu-latest): management/server/http/accounts_handler_test.go#L43
cannot use func(context.Context, string, string) (*server.AccountUsageStats, error) {…} (value of type func("context".Context, string, string) (*server.AccountUsageStats, error)) as func(ctx "context".Context, accountID string) (*server.AccountUsageStats, error) value in struct literal (typecheck)
lint (ubuntu-latest)
issues found
lint (macos-latest): management/server/http/accounts_handler.go#L1
: # github.com/netbirdio/netbird/management/server/http [github.com/netbirdio/netbird/management/server/http.test]
lint (macos-latest): management/server/http/accounts_handler_test.go#L43
cannot use func(context.Context, string, string) (*server.AccountUsageStats, error) {…} (value of type func("context".Context, string, string) (*server.AccountUsageStats, error)) as func(ctx "context".Context, accountID string) (*server.AccountUsageStats, error) value in struct literal (typecheck)
lint (macos-latest)
issues found
lint (windows-latest)
cannot use func(context.Context, string, string) (*server.AccountUsageStats, error) {…} (value of type func(\"context\".Context, string, string) (*server.AccountUsageStats, error)) as func(ctx \"context\".Context, accountID string) (*server.AccountUsageStats, error) value in struct literal"
lint (windows-latest)
golangci-lint exit with code 7
codespell
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint (ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint (macos-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint (windows-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.