Skip to content

ci(golangci): derive lint version from bingo pin - #4975

Open
tuxerrante wants to merge 1 commit into
masterfrom
tuxerrante/ARO-28459/golangci-version-sync
Open

ci(golangci): derive lint version from bingo pin#4975
tuxerrante wants to merge 1 commit into
masterfrom
tuxerrante/ARO-28459/golangci-version-sync

Conversation

@tuxerrante

@tuxerrante tuxerrante commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • derive the golangci-lint-action version from .bingo/golangci-lint.mod instead of hardcoding a second pin in CI
  • fail fast if the bingo pin cannot be parsed before writing the version to $GITHUB_OUTPUT
  • keep golangci-lint-action and its existing install/cache behavior unchanged

Validation

  • make validate-go-action
  • local extraction check: version=v2.12.2

Jira

  • ARO-28459

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

This PR updates the Go CI workflow to derive the golangci-lint-action version input from the bingo pin (.bingo/golangci-lint.mod), eliminating a duplicated hardcoded version in CI, and adds a short agent-guide note documenting the approach.

Changes:

  • Read the golangci-lint version from .bingo/golangci-lint.mod in the golangci GitHub Actions job and pass it into golangci/golangci-lint-action.
  • Add documentation describing the version-sync approach and its intent to keep CI aligned with bingo’s pin.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
docs/agent-guides/golangci-version-sync-note.md Adds documentation about syncing golangci-lint version between CI and bingo.
.github/workflows/ci-go.yml Derives the golangci-lint-action version input from .bingo/golangci-lint.mod instead of hardcoding it.

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

Comment thread docs/agent-guides/golangci-version-sync-note.md Outdated
Comment thread docs/agent-guides/golangci-version-sync-note.md Outdated
Comment thread docs/agent-guides/golangci-version-sync-note.md Outdated
Comment thread docs/agent-guides/golangci-version-sync-note.md Outdated
Comment thread .github/workflows/ci-go.yml Outdated
Copilot AI review requested due to automatic review settings July 17, 2026 07:43

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/ci-go.yml Outdated
Comment thread .github/workflows/ci-go.yml
Read the golangci-lint action version from .bingo/golangci-lint.mod, fail fast if the pin cannot be parsed, and keep the existing golangci-lint-action install/cache flow unchanged.
Copilot AI review requested due to automatic review settings July 17, 2026 08:22
@tuxerrante
tuxerrante force-pushed the tuxerrante/ARO-28459/golangci-version-sync branch from 9ce4a63 to f16959e Compare July 17, 2026 08:22

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

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

@rh-returners rh-returners 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

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