Update elastic-agent-client and rename control proto package to cproto #19352
Annotations
10 errors and 2 warnings
|
golangci-lint:
x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go#L12
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)
|
golangci-lint:
x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go#L605
Error return value of `c.agentProc.StopWait` is not checked (errcheck)
|
golangci-lint:
x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go#L667
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
golangci-lint:
x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go#L717
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
golangci-lint:
x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go#L830
comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
golangci-lint:
x-pack/elastic-agent/pkg/agent/cmd/enroll_cmd.go#L844
Error return value of `fileLock.Unlock` is not checked (errcheck)
|
golangci-lint:
x-pack/elastic-agent/pkg/agent/control/server/server.go#L155
error is not nil (line 153) but it returns nil (nilerr)
|
golangci-lint:
x-pack/elastic-agent/pkg/agent/control/server/server.go#L238
(*net/http.Client).Get must not be called (noctx)
|
golangci-lint
issues found
|
Post golangci-lint
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']
|
golangci-lint
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']
|
Loading