Skip to content

Receive and use package.version from Elastic Agent #13801

Receive and use package.version from Elastic Agent

Receive and use package.version from Elastic Agent #13801

Triggered via pull request January 17, 2024 13:43
Status Failure
Total duration 7m 4s
Artifacts

golangci-lint.yml

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

Annotations

9 errors and 6 warnings
lint (linux): filebeat/cmd/root.go#L81
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint (linux): filebeat/cmd/root.go#L86
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint (linux): filebeat/cmd/root.go#L89
use of `fmt.Printf` forbidden by pattern `fmt.Print.*` (forbidigo)
lint (linux): libbeat/cmd/instance/beat.go#L200
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
lint (linux): libbeat/cmd/root.go#L64
Error return value of `elasticsearch.RegisterGlobalCallback` is not checked (errcheck)
lint (linux): libbeat/cmd/root.go#L81
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint (linux): libbeat/tests/integration/framework.go#L29
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): x-pack/filebeat/tests/integration/managerV2_test.go#L233
S1024: should use time.Until instead of t.Sub(time.Now()) (gosimple)
lint (linux)
issues found
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']