Skip to content

golangci: lint with Go 1.21, 1.22, 1.23 and macOS, Linux, Windows #397

golangci: lint with Go 1.21, 1.22, 1.23 and macOS, Linux, Windows

golangci: lint with Go 1.21, 1.22, 1.23 and macOS, Linux, Windows #397

Triggered via pull request September 17, 2024 15:33
Status Failure
Total duration 48s
Artifacts

golangci-lint.yml

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

Annotations

24 errors
lint (1.21, macos-latest): pkg/amd/apcb/apcb_test.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 (1.21, macos-latest): cmds/fittool/main.go#L70
Error return value of `flagsParser.Parse` is not checked (errcheck)
lint (1.21, macos-latest): cmds/create-ffs/create-ffs.go#L172
Error return value of `mainSection.GenSecHeader` is not checked (errcheck)
lint (1.21, macos-latest): cmds/create-ffs/create-ffs.go#L29
var `compress` is unused (unused)
lint (1.21, macos-latest): cmds/create-ffs/create-ffs.go#L30
var `auto` is unused (unused)
lint (1.21, macos-latest): pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go#L17
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 (1.21, macos-latest): pkg/intel/metadata/fit/ent_startup_ac_module_entry_test.go#L19
SA1019: rand.Read has been deprecated since Go 1.20 because it shouldn't be used: For almost all use cases, crypto/rand.Read is more appropriate. (staticcheck)
lint (1.21, macos-latest)
issues found
lint (1.21, windows-latest)
The job was canceled because "_1_21_macos-latest" failed.
lint (1.21, windows-latest)
The operation was canceled.
lint (1.22, ubuntu-latest)
The job was canceled because "_1_21_macos-latest" failed.
lint (1.22, ubuntu-latest)
The operation was canceled.
lint (1.23, ubuntu-latest)
The job was canceled because "_1_21_macos-latest" failed.
lint (1.23, ubuntu-latest)
The operation was canceled.
lint (1.23, windows-latest)
The job was canceled because "_1_21_macos-latest" failed.
lint (1.23, windows-latest)
The operation was canceled.
lint (1.21, ubuntu-latest)
The job was canceled because "_1_21_macos-latest" failed.
lint (1.21, ubuntu-latest)
The operation was canceled.
lint (1.22, windows-latest)
The job was canceled because "_1_21_macos-latest" failed.
lint (1.22, windows-latest)
The operation was canceled.
lint (1.22, macos-latest)
The job was canceled because "_1_21_macos-latest" failed.
lint (1.22, macos-latest)
The operation was canceled.
lint (1.23, macos-latest)
The job was canceled because "_1_21_macos-latest" failed.
lint (1.23, macos-latest)
The operation was canceled.