Repository navigation
Fix Staticcheck nil-guard warnings blocking the release - #408
Merged
AndreyVMarkelov merged 2 commits intoNov 18, 2026
Merged
AndreyVMarkelov merged 2 commits into
AndreyVMarkelov merged 2 commits 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.
The v3.8.1 release workflow stops at Staticcheck SA5011 findings in eight test nil guards, preventing the remaining validation and release steps from running.
Add explicit returns after the existing fatal assertions so control flow is unambiguous to the analyzer before the guarded pointers are dereferenced. This changes eight test lines and leaves production code and assertions unchanged.
Failing run: https://github.com/dropbox/dbxcli/actions/runs/44246445255
Validated with the release toolchain (Go 1.26.11 and golangci-lint 2.12.2):
golangci-lint run— 0 issuesgo test ./...go vet ./...go build ./...git diff --check