Skip to content

Fix panic when fetching resources fails due to network error #1924

Fix panic when fetching resources fails due to network error

Fix panic when fetching resources fails due to network error #1924

Triggered via pull request December 2, 2025 15:29
Status Failure
Total duration 28s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors
lint
issues found
lint: pkg/github/repository_resource_test.go#L378
tmpl.URITemplate.Raw undefined (type string has no field or method Raw) (typecheck)
lint: pkg/github/repository_resource_test.go#L372
tmpl.URITemplate.Raw undefined (type string has no field or method Raw)
lint: pkg/github/repository_resource_test.go#L367
tmpl.URITemplate.Raw undefined (type string has no field or method Raw)
lint: pkg/github/repository_resource_test.go#L361
tmpl.URITemplate.Raw undefined (type string has no field or method Raw)
lint: pkg/github/repository_resource_test.go#L352
cannot use request (variable of struct type mcp.ReadResourceRequest) as *mcp.ReadResourceRequest value in argument to handler
lint: pkg/github/repository_resource_test.go#L339
cannot use struct{URI string `json:"uri"`; Arguments map[string]any `json:"arguments,omitempty"`}{…} (value of type struct{URI string "json:\"uri\""; Arguments map[string]any "json:\"arguments,omitempty\""}) as *mcp.ReadResourceParams value in struct literal
lint: pkg/github/repository_resource_test.go#L336
not enough arguments in call to RepositoryResourceContentsHandler