Skip to content

Upgrad elastic-agent-system-metrics to v0.10.7. #21474

Upgrad elastic-agent-system-metrics to v0.10.7.

Upgrad elastic-agent-system-metrics to v0.10.7. #21474

Triggered via pull request July 31, 2024 14:53
Status Failure
Total duration 8m 3s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 6 warnings
lint (linux): libbeat/autodiscover/template/config_test.go#L327
Error return value of `writableKeystore.Store` is not checked (errcheck)
lint (linux): libbeat/autodiscover/template/config_test.go#L328
Error return value of `writableKeystore.Save` is not checked (errcheck)
lint (linux): libbeat/tests/docker/docker.go#L24
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
lint (linux): libbeat/tests/docker/docker.go#L96
naked return in func `imagePull` with 27 lines of code (nakedret)
lint (linux): metricbeat/module/docker/docker.go#L147
Error return value of `decoder.Decode` is not checked (errcheck)
lint (linux): metricbeat/module/docker/event/event_integration_test.go#L83
Error return value of `io.Copy` is not checked (errcheck)
lint (linux): metricbeat/module/docker/event/event_integration_test.go#L94
Error return value of `c.ContainerRemove` is not checked (errcheck)
lint (linux): metricbeat/module/docker/image/data.go#L33
G601: Implicit memory aliasing in for loop. (gosec)
lint (linux): metricbeat/module/docker/image/data.go#L47
SA1019: img.VirtualSize is deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead. (staticcheck)
lint (linux)
issues found
lint (windows)
The job was canceled because "linux" failed.
lint (windows)
The operation was canceled.
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']