Skip to content

Commit

Permalink
chore(deps): update dependency golangci/golangci-lint to v1.63.0 (#3411)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency golangci/golangci-lint to v1.63.0

* chore(aqua): update aqua/aqua-checksums.json

* refactor: fix lintt errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: aquaproj-aqua-releaser[bot] <95135029+aquaproj-aqua-releaser[bot]@users.noreply.github.com>
Co-authored-by: Shunsuke Suzuki <[email protected]>
  • Loading branch information
3 people authored Jan 2, 2025
1 parent b2e30f1 commit b386861
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions aqua/aqua-checksums.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"checksums": [
{
"id": "github_release/github.com/golangci/golangci-lint/v1.62.2/golangci-lint-1.62.2-darwin-amd64.tar.gz",
"checksum": "6C9FFD05896F0638D5C37152AC4AE337C2D301BA6C9DADF49C04E6D639F10F91",
"id": "github_release/github.com/golangci/golangci-lint/v1.63.0/golangci-lint-1.63.0-darwin-amd64.tar.gz",
"checksum": "8C300FFE7AF71800CC85259B26057FA94BC725C71781776E20E01EB63D354B1C",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/golangci/golangci-lint/v1.62.2/golangci-lint-1.62.2-darwin-arm64.tar.gz",
"checksum": "6C76F54467BA471F7BDCD5DF0F27C3FA3DBE530B771A10D384C3D8C7178F5E89",
"id": "github_release/github.com/golangci/golangci-lint/v1.63.0/golangci-lint-1.63.0-darwin-arm64.tar.gz",
"checksum": "B92E6E6C44092B991545FA4042B4D1CF5224D3C03D560583ED8487AA022B95D8",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/golangci/golangci-lint/v1.62.2/golangci-lint-1.62.2-linux-amd64.tar.gz",
"checksum": "5101292B7925A6A14B49C5C3D845C5021399698FFD2F41BCFAB8A111B5669939",
"id": "github_release/github.com/golangci/golangci-lint/v1.63.0/golangci-lint-1.63.0-linux-amd64.tar.gz",
"checksum": "B057D1982BBE74BFDFE088747F1254B2B4C30A659D667CFDD69F9AD995B499B1",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/golangci/golangci-lint/v1.62.2/golangci-lint-1.62.2-linux-arm64.tar.gz",
"checksum": "10B6F5BD8483BD9E85A82F6119ED08F95609F42B86DC344B5DC15703C74D5B85",
"id": "github_release/github.com/golangci/golangci-lint/v1.63.0/golangci-lint-1.63.0-linux-arm64.tar.gz",
"checksum": "B7CBD57825573B04F5DCF745D8A0C95B5302FA9F2FDB9841864DC40A8B569A3F",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/golangci/golangci-lint/v1.62.2/golangci-lint-1.62.2-windows-amd64.zip",
"checksum": "C8830AA4A6AABBAE70CD336C18204D928DCD8253B98CA5891161CA295AE5E1FD",
"id": "github_release/github.com/golangci/golangci-lint/v1.63.0/golangci-lint-1.63.0-windows-amd64.zip",
"checksum": "2AA23F1894A4E6549CDB8BC8F78805F83B0C364F02CE292E70BF9EC8F17C477C",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/golangci/golangci-lint/v1.62.2/golangci-lint-1.62.2-windows-arm64.zip",
"checksum": "253F993A3131F41800069D2568BFEAE269135C48622C63F7500988271CF0EDB0",
"id": "github_release/github.com/golangci/golangci-lint/v1.63.0/golangci-lint-1.63.0-windows-arm64.zip",
"checksum": "4EC5ED235B4340E9DF3F45E19B340587F3B0AD4C10CC2B4B88550183956A65D1",
"algorithm": "sha256"
},
{
Expand Down
2 changes: 1 addition & 1 deletion aqua/imports/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- name: golangci/golangci-lint@v1.62.2
- name: golangci/golangci-lint@v1.63.0
4 changes: 2 additions & 2 deletions pkg/config/registry/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func BenchmarkReadRegistry(b *testing.B) {
b.Fatal(err)
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
for range b.N {
func() {
f, err := os.Open(registryYAML)
if err != nil {
Expand All @@ -65,7 +65,7 @@ func BenchmarkReadRegistry(b *testing.B) {
b.Fatal(err)
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
for range b.N {
func() {
f, err := os.Open(registryJSON)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/exec/exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ packages:
pkgInstaller := installpackage.New(d.param, downloader, d.rt, fs, linker, nil, &checksum.Calculator{}, unarchive.New(executor, fs), &cosign.MockVerifier{}, &slsa.MockVerifier{}, &minisign.MockVerifier{}, &ghattestation.MockVerifier{}, &installpackage.MockGoInstallInstaller{}, &installpackage.MockGoBuildInstaller{}, &installpackage.MockCargoPackageInstaller{})
ctrl := execCtrl.New(pkgInstaller, whichCtrl, executor, osEnv, fs, &policy.MockReader{})
b.ResetTimer()
for i := 0; i < b.N; i++ {
for range b.N {
func() {
if err := ctrl.Exec(ctx, logE, d.param, d.exeName, d.args...); err != nil {
if d.isErr {
Expand Down
2 changes: 1 addition & 1 deletion pkg/installpackage/checksum.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (is *Installer) verifyChecksumWrap(ctx context.Context, logE *logrus.Entry,
return nil
}

func (is *Installer) verifyChecksum(ctx context.Context, logE *logrus.Entry, param *ParamVerifyChecksum) error { //nolint:cyclop,funlen
func (is *Installer) verifyChecksum(ctx context.Context, logE *logrus.Entry, param *ParamVerifyChecksum) error { //nolint:cyclop
pkg := param.Pkg
pkgInfo := pkg.PackageInfo
checksums := param.Checksums
Expand Down

0 comments on commit b386861

Please sign in to comment.