Skip to content

github: add golangci-lint in the sanity CI job #520

github: add golangci-lint in the sanity CI job

github: add golangci-lint in the sanity CI job #520

Triggered via pull request January 10, 2024 19:20
Status Failure
Total duration 50s
Artifacts

sanity.yml

on: pull_request
Run tests
40s
Run tests
Matrix: Run go sanity tools
Matrix: Build / Crossbuild Binaries
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 1 warning
Run go sanity tools (windows, amd64): pkg/cdi/cache.go#L72
Error return value is not checked (errcheck)
Run go sanity tools (windows, amd64): pkg/cdi/cache.go#L110
Error return value of `c.refresh` is not checked (errcheck)
Run go sanity tools (windows, amd64): pkg/cdi/cache.go#L227
Error return value of `c.refreshIfRequired` is not checked (errcheck)
Run go sanity tools (windows, amd64): pkg/cdi/cache.go#L334
Error return value of `c.refreshIfRequired` is not checked (errcheck)
Run go sanity tools (windows, amd64): pkg/cdi/cache.go#L346
Error return value of `c.refreshIfRequired` is not checked (errcheck)
Run go sanity tools (windows, amd64): pkg/cdi/cache.go#L538
Error return value is not checked (errcheck)
Run go sanity tools (windows, amd64): pkg/cdi/registry.go#L131
Error return value of `reg.Configure` is not checked (errcheck)
Run go sanity tools (windows, amd64): pkg/cdi/registry.go#L132
Error return value of `reg.Refresh` is not checked (errcheck)
Run go sanity tools (windows, amd64): schema/schema.go#L138
S1003: should use !strings.Contains(source, "://") instead (gosimple)
Run go sanity tools (windows, amd64): pkg/cdi/cache_test.go#L721
S1005: unnecessary assignment to the blank identifier (gosimple)
Run go sanity tools (linux, amd64)
Cannot open: File exists
Run go sanity tools (linux, amd64)
Cannot open: File exists
Run go sanity tools (linux, amd64)
Cannot open: File exists
Run go sanity tools (linux, amd64)
Cannot open: File exists
Run go sanity tools (linux, amd64)
Cannot open: File exists
Run go sanity tools (linux, amd64)
Cannot open: File exists
Run go sanity tools (linux, amd64)
Cannot open: File exists
Run go sanity tools (linux, amd64)
Cannot open: File exists
Run go sanity tools (linux, amd64)
Cannot open: File exists
Run go sanity tools (linux, amd64)
Cannot open: File exists
Run go sanity tools (linux, amd64)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2