⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

Copy link

Copilot AI commented Jan 12, 2026

The golangci-lint workflow was failing because golangci-lint v1.55 doesn't support Go 1.24, and the action version was too old to recognize v2.x releases.

Changes

  • Upgraded golangci-lint: v1.55 → v2.8.0 (built with Go 1.24)
  • Upgraded golangci-lint-action: v3.7.0 → v9.2.0 (supports v2.x versions)
  • Migrated .golangci.yml: v1 → v2 config format
    • Added version: "2" field
    • Replaced exportloopref with copyloopvar
    • Removed gosimple (merged into staticcheck) and typecheck (no longer a linter)
    • Moved formatters (gofmt, goimports) to dedicated formatters section

The workflow now specifies v2.8.0 instead of v2.8 since the newer action requires the full version string.

Original prompt

Fix the failing GitHub Actions workflow "golangci-lint / golangci (push)".
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 60084230294
Job URL: /github/go-pipe/actions/runs/20914289997/job/60084230294?pr=42


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow golangci-lint Upgrade golangci-lint to v2.8 for Go 1.24 compatibility Jan 12, 2026
Copilot AI requested a review from migue January 12, 2026 09:42
Copilot AI changed the title Upgrade golangci-lint to v2.8 for Go 1.24 compatibility Fix golangci-lint workflow for Go 1.24 compatibility Jan 12, 2026
@migue migue marked this pull request as ready for review January 12, 2026 10:51
@migue migue requested a review from a team as a code owner January 12, 2026 10:51
Copilot AI review requested due to automatic review settings January 12, 2026 10:51
@migue migue merged commit aeb0cba into copilot/fix-github-actions-workflow Jan 12, 2026
6 checks passed
@migue migue deleted the copilot/fix-github-actions-workflow-again branch January 12, 2026 10:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the golangci-lint GitHub Actions workflow to support Go 1.24 compatibility by upgrading golangci-lint and its action to newer versions that support Go 1.24, migrating the configuration to the v2 format, and addressing linter warnings in the codebase.

Changes:

  • Upgraded golangci-lint from v1.55 to v2.8.0 and golangci-lint-action from v3.7.0 to v9.2.0
  • Migrated .golangci.yml from v1 to v2 configuration format with updated linters and structure
  • Fixed code to comply with new linter rules (unused parameters, loop variable capture)

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/golangci-lint.yml Updated action and golangci-lint versions to support Go 1.24
.golangci.yml Migrated configuration to v2 format, replaced deprecated linters, reorganized settings
pipe/pipeline_test.go Marked unused parameters with underscore, removed unnecessary loop variable capture
pipe/pipeline.go Marked unused parameter with underscore, added nolint for intentional error naming
pipe/command_test.go Removed unnecessary loop variable capture for Go 1.22+
pipe/command.go Simplified API call from eErr.ProcessState.Sys() to eErr.Sys()
internal/ptree/ptree_test.go Marked unused parameter with underscore

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

rules:
main:
files:
- $all
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

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

The depguard configuration uses $all without quotes on line 35, but uses quoted '!$test' on line 36. For consistency and to ensure proper YAML parsing, both should use the same quoting style. Consider using quotes for both: '$all' and '!$test'.

Suggested change
- $all
- '$all'

Copilot uses AI. Check for mistakes.
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.

2 participants