Skip to content

馃尡 Update golangci-lint to v2.8.0 - #588

Merged
mamy-CS merged 1 commit into
mainfrom
update-golangci-lint-v2.8.0
Jan 14, 2026
Merged

馃尡 Update golangci-lint to v2.8.0#588
mamy-CS merged 1 commit into
mainfrom
update-golangci-lint-v2.8.0

Conversation

@clubanderson

@clubanderson clubanderson commented Jan 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Updates golangci-lint from v2.1.6 to v2.8.0
  • Fixes false positive "possible nil pointer dereference" warnings in test files
  • The older staticcheck version didn't recognize that t.Fatal() terminates execution

Context

PR #424 is blocked by these false positives in pkg/core/system_test.go and pkg/core/allocation_test.go. The code correctly checks for nil and calls t.Fatal() which stops execution, but the older linter version doesn't understand this control flow.

Test plan

  • CI passes with the updated linter version
  • No new legitimate lint warnings introduced

Copilot AI review requested due to automatic review settings January 14, 2026 16:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates golangci-lint from v2.1.6 to v2.8.0 to resolve false positive nil pointer dereference warnings that were blocking PR #424.

Changes:

  • Upgrades golangci-lint version in CI workflow
  • Resolves staticcheck false positives where t.Fatal() termination wasn't recognized

@mamy-CS mamy-CS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@mamy-CS

mamy-CS commented Jan 14, 2026

Copy link
Copy Markdown
Collaborator

/ok-to-test

@github-actions

Copy link
Copy Markdown
Contributor

馃殌 E2E tests triggered by /ok-to-test

View the OpenShift E2E workflow run

@mamy-CS

mamy-CS commented Jan 14, 2026

Copy link
Copy Markdown
Collaborator

commit needs verified signature @clubanderson

The previous version (v2.1.6) had false positives with staticcheck
not recognizing that t.Fatal() terminates execution, causing spurious
"possible nil pointer dereference" warnings in test files.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
@clubanderson
clubanderson force-pushed the update-golangci-lint-v2.8.0 branch from 6679043 to 0c508e7 Compare January 14, 2026 17:41
@clubanderson

Copy link
Copy Markdown
Contributor Author

@mamy-CS done

@mamy-CS
mamy-CS merged commit e700405 into main Jan 14, 2026
4 checks passed
@lionelvillard
lionelvillard deleted the update-golangci-lint-v2.8.0 branch June 22, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants