[9.3](backport #4052) chore: update Go version to 1.26.1#4056
Open
mergify[bot] wants to merge 1 commit into9.3from
Open
[9.3](backport #4052) chore: update Go version to 1.26.1#4056mergify[bot] wants to merge 1 commit into9.3from
mergify[bot] wants to merge 1 commit into9.3from
Conversation
## Summary - Update Go toolchain version to 1.26.1 across the project - Upgrade golangci-lint from 2.4.0 to 2.11.3 (required — 2.4.0 was built with Go 1.25 and can't lint Go 1.26.1 code) - Disable newly introduced revive rules that flag pre-existing code patterns - Fix 3 prealloc issues by preallocating slices with known capacity ## Changes ### Go version bump | File | From | To | |------|------|----| | `.go-version` | 1.25.5 | 1.26.1 | | `go.mod` | 1.25.5 | 1.26.1 | | `scripts/update_assets_md/go.mod` | 1.24.0 | 1.26.1 | | `docs/version.asciidoc` | 1.25.4 | 1.26.1 | | `bin/.go-1.25.5.pkg` | renamed | `bin/.go-1.26.1.pkg` | | `bin/go` | `.go-1.25.5.pkg` | `.go-1.26.1.pkg` | | `bin/gofmt` | `.go-1.25.5.pkg` | `.go-1.26.1.pkg` | ### golangci-lint upgrade | File | From | To | |------|------|----| | `bin/.golangci-lint-2.4.0.pkg` | renamed | `bin/.golangci-lint-2.11.3.pkg` | | `bin/golangci-lint` | `.golangci-lint-2.4.0.pkg` | `.golangci-lint-2.11.3.pkg` | | `.golangci.yaml` | — | Disable 6 new revive rules | ### Prealloc fixes - `internal/resources/fetching/fetchers/azure/assets_enricher.go` - `internal/resources/providers/awslib/rds/provider.go` - `internal/resources/providers/gcplib/inventory/provider.go` ## Test plan - [ ] CI pipeline passes with the new Go version - [ ] Linter passes (`golangci-lint run` exits 0) - [ ] Build and unit tests succeed (cherry picked from commit 535c223)
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Go version bump
.go-versiongo.modscripts/update_assets_md/go.moddocs/version.asciidocbin/.go-1.25.5.pkgbin/.go-1.26.1.pkgbin/go.go-1.25.5.pkg.go-1.26.1.pkgbin/gofmt.go-1.25.5.pkg.go-1.26.1.pkggolangci-lint upgrade
bin/.golangci-lint-2.4.0.pkgbin/.golangci-lint-2.11.3.pkgbin/golangci-lint.golangci-lint-2.4.0.pkg.golangci-lint-2.11.3.pkg.golangci.yamlPrealloc fixes
internal/resources/fetching/fetchers/azure/assets_enricher.gointernal/resources/providers/awslib/rds/provider.gointernal/resources/providers/gcplib/inventory/provider.goTest plan
golangci-lint runexits 0)This is an automatic backport of pull request chore: update Go version to 1.26.1 #4052 done by Mergify.