Skip to content

Use version in path #7466

Use version in path

Use version in path #7466

Triggered via pull request January 10, 2024 10:22
Status Failure
Total duration 44s
Artifacts

golangci-lint.yml

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

Annotations

14 errors and 7 warnings
lint (ubuntu-latest): 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)
lint (ubuntu-latest): dev-tools/mage/common.go#L878
naked return in func `ParseVersion` with 16 lines of code (nakedret)
lint (ubuntu-latest): 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)
lint (ubuntu-latest): 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)
lint (ubuntu-latest): 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
lint (ubuntu-latest): internal/pkg/agent/application/upgrade/step_unpack.go#L42
cannot use unzip(u.log, archivePath) (value of type unpackResult) as string value in assignment
lint (ubuntu-latest): 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
lint (ubuntu-latest): internal/pkg/agent/application/upgrade/step_unpack.go#L70
versionedHome declared and not used
lint (ubuntu-latest): internal/pkg/agent/application/upgrade/upgrade.go#L178
invalid operation: newHash == "" (mismatched types unpackResult and untyped string)
lint (ubuntu-latest): internal/pkg/agent/application/upgrade/upgrade.go#L182
cannot use newHash (variable of type unpackResult) as string value in argument to strings.HasPrefix
lint (macos-latest)
The job was canceled because "ubuntu-latest" failed.
lint (macos-latest)
The operation was canceled.
lint (windows-latest)
The job was canceled because "ubuntu-latest" failed.
lint (windows-latest)
The operation was canceled.
lint (ubuntu-latest)
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 (ubuntu-latest)
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 (macos-latest)
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 (macos-latest)
Failed to save: "/usr/local/bin/gtar" failed with error: The process '/usr/local/bin/gtar' failed with exit code 1
lint (macos-latest)
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-latest)
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-latest)
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']