Use version in path #7466
Annotations
10 errors and 2 warnings
golangci-lint:
dev-tools/mage/common.go#L22
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:
dev-tools/mage/common.go#L878
naked return in func `ParseVersion` with 16 lines of code (nakedret)
|
golangci-lint:
dev-tools/mage/settings.go#L11
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:
dev-tools/mage/settings.go#L26
SA1019: "golang.org/x/tools/go/vcs" is deprecated: Use the go list command with -json flag instead, which implements up-to-date import path resolution behavior, module support, and includes the latest security fixes. (staticcheck)
|
golangci-lint:
internal/pkg/agent/application/application.go#L24
could not import github.com/elastic/elastic-agent/internal/pkg/agent/application/upgrade (-: # github.com/elastic/elastic-agent/internal/pkg/agent/application/upgrade
|
golangci-lint:
internal/pkg/agent/application/upgrade/step_unpack.go#L42
cannot use unzip(u.log, archivePath) (value of type unpackResult) as string value in assignment
|
golangci-lint:
internal/pkg/agent/application/upgrade/step_unpack.go#L44
cannot use untar(u.log, version, archivePath) (value of type unpackResult) as string value in assignment
|
golangci-lint:
internal/pkg/agent/application/upgrade/step_unpack.go#L70
versionedHome declared and not used
|
golangci-lint:
internal/pkg/agent/application/upgrade/upgrade.go#L178
invalid operation: newHash == "" (mismatched types unpackResult and untyped string)
|
golangci-lint:
internal/pkg/agent/application/upgrade/upgrade.go#L182
cannot use newHash (variable of type unpackResult) as string value in argument to strings.HasPrefix
|
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']
|
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']
|
The logs for this run have expired and are no longer available.
Loading