Skip to content

Handle registry changes #960

Handle registry changes

Handle registry changes #960

Triggered via pull request October 23, 2024 19:57
Status Failure
Total duration 22s
Artifacts

lint.yml

on: pull_request
Lint
14s
Lint
Lint (Contracts)
8s
Lint (Contracts)
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Lint: pkg/testutils/api/api.go#L1
: # github.com/xmtp/xmtpd/pkg/testutils/api
Lint: pkg/testutils/api/api.go#L77
cannot use mockRegistry (variable of type *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry) as "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry value in argument to registrant.NewRegistrant: *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry does not implement "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry (missing method RegisterNode)
Lint: pkg/testutils/api/api.go#L94
cannot use mockRegistry (variable of type *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry) as "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry value in argument to payer.NewPayerApiService: *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry does not implement "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry (missing method RegisterNode) (typecheck)
Lint: pkg/api/query_test.go#L14
could not import github.com/xmtp/xmtpd/pkg/testutils/api (-: # github.com/xmtp/xmtpd/pkg/testutils/api
Lint: pkg/testutils/api/api.go#L77
cannot use mockRegistry (variable of type *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry) as "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry value in argument to registrant.NewRegistrant: *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry does not implement "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry (missing method RegisterNode)
Lint: pkg/testutils/api/api.go#L94
cannot use mockRegistry (variable of type *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry) as "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry value in argument to payer.NewPayerApiService: *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry does not implement "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry (missing method RegisterNode)) (typecheck)
Lint: pkg/api/message/publish_test.go#L12
could not import github.com/xmtp/xmtpd/pkg/testutils/api (-: # github.com/xmtp/xmtpd/pkg/testutils/api
Lint: pkg/testutils/api/api.go#L77
cannot use mockRegistry (variable of type *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry) as "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry value in argument to registrant.NewRegistrant: *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry does not implement "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry (missing method RegisterNode)
Lint: pkg/testutils/api/api.go#L94
cannot use mockRegistry (variable of type *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry) as "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry value in argument to payer.NewPayerApiService: *"github.com/xmtp/xmtpd/pkg/mocks/registry".MockNodeRegistry does not implement "github.com/xmtp/xmtpd/pkg/registry".NodeRegistry (missing method RegisterNode)) (typecheck)
Lint: pkg/api/payer/clientManager_test.go#L13
could not import github.com/xmtp/xmtpd/pkg/testutils/api (-: # github.com/xmtp/xmtpd/pkg/testutils/api
Lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v3, 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/