Skip to content

Update azure.coding-agent extension to Go 1.26 and add golangci-lint - #7031

Merged
Rajesh Kamal (rajeshkamal5050) merged 1 commit into
mainfrom
go-1.26-lint-ext-azure-coding-agent
Mar 6, 2026
Merged

Update azure.coding-agent extension to Go 1.26 and add golangci-lint#7031
Rajesh Kamal (rajeshkamal5050) merged 1 commit into
mainfrom
go-1.26-lint-ext-azure-coding-agent

Conversation

@vhvb1989

Copy link
Copy Markdown
Member

Changes

  • Update Go version from 1.25 to 1.26.0 in go.mod
  • Add .golangci.yaml configuration file (gosec, lll, unused, errorlint, gofmt)
  • Add GitHub Actions workflow for golangci-lint CI on PRs
  • Fix all golangci-lint issues (gosec nolint annotation, line length)

Follows the same pattern established in the azure.ai.agents extension.

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 the azure.coding-agent azd extension to align with the repository’s current Go toolchain (1.26) and introduces CI linting via golangci-lint for this extension.

Changes:

  • Bump cli/azd/extensions/azure.coding-agent module Go version to 1.26.
  • Add golangci-lint configuration for the extension and a dedicated PR lint workflow.
  • Apply small code adjustments to satisfy linting (string wrapping; gosec suppression for mkdir permissions).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
cli/azd/extensions/azure.coding-agent/internal/cmd/coding_agent_config.go Wrap long Long help text and add a justified gosec nolint for workflow directory creation.
cli/azd/extensions/azure.coding-agent/go.mod Updates module Go version to 1.26.0.
cli/azd/extensions/azure.coding-agent/.golangci.yaml Adds golangci-lint v2 config enabling a focused linter set plus gofmt formatting checks.
.github/workflows/lint-ext-azure-coding-agent.yml Adds PR-scoped lint workflow that calls the shared lint-go.yml workflow for this extension.

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

@rajeshkamal5050
Rajesh Kamal (rajeshkamal5050) merged commit 0815bea into main Mar 6, 2026
21 checks passed
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