chore(deps): update dependency dominikh/go-tools to v2026.2.1 - #417
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency dominikh/go-tools to v2026.2.1#417renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
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.
This PR contains the following updates:
2026.1→2026.2.1Release Notes
dominikh/go-tools (dominikh/go-tools)
v2026.2.1: Staticcheck 2026.2.1 (v0.8.1)Compare Source
This release fixes two false positives in SA4023 that were introduced with 2026.2:
v2026.2: Staticcheck 2026.2 (v0.8.0)Compare Source
Added support for Go 1.27
This release updates Staticcheck’s database of deprecated standard library APIs to cover Go 1.27. Furthermore, it adds support for two new language features: generic methods and struct initializers with direct references to embedded fields
Support for GOCACHEPROG
Staticcheck now supports the same
GOCACHEPROGenvironment variable and protocol as thegotool. This allows users to provide their own implementation of the build/fact/diagnostic cache.Case-insensitive check names
All places that accept names of checks, such as the
-checksand-explainflags, ignore directives, and thecheckssetting in configuration files now ignore the case of the provided names. That is,SA1000,sa1000, andsA1000all refer to the same check.Performance improvements for some packages
We have made changes to better support code with very complex control flow graphs, such as the output of wasm2go. In one particularly pathological case, memory usage was reduced from 10 GiB to 1.5 GiB and wall time from 73 s to 13 s.
Checks
New checks
One new check has been added. SA9010 flags statements of the form
defer foo()wherefooreturns a function. Usually, functions like that expect the user to defer calling the returned function.For example:
Changed checks
The following checks have been improved:
MarshalIdentfunctions, too.+=,^=, etc) as well as postfix increment and decrement.strings.EqualFoldhas to be inverted.v, _ := m[k]as a hint that the key may be missing from the map but that using the zero value is fine.simd/archsimdpackage in the default value of thedot_import_whitelistsetting.Configuration
📅 Schedule: (UTC)
* 0-3 1 * *)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.