Skip to content

Conversation

@jakebailey
Copy link
Member

See golangci/golangci-lint#6205; GHA now has the regressed version of git.

Copy link
Contributor

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 implements a temporary workaround for a golangci-lint bug (issue #6205) that affects GitHub Actions environments with a regressed version of git. The fix hardcodes a specific golangci-lint version instead of reading it from the configuration file.

Key changes:

  • Comments out the logic that reads the golangci-lint version from .custom-gcl.yml
  • Hardcodes version v2.6.3-0.20251130135459-0212d7c8deac with a reference to the upstream issue

// if (!match) {
// throw new Error("Expected version in .custom-gcl.yml");
// }
// const version = match[1];
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

Since this is a temporary workaround, consider adding a TODO or FIXME comment to remind future maintainers to revert this change once the golangci-lint issue is resolved. For example:

// TODO: Revert to reading from .custom-gcl.yml once https://github.com/golangci/golangci-lint/issues/6205 is resolved
const version = "v2.6.3-0.20251130135459-0212d7c8deac"; // https://github.com/golangci/golangci-lint/issues/6205
Suggested change
// const version = match[1];
// const version = match[1];
// TODO: Revert to reading from .custom-gcl.yml once https://github.com/golangci/golangci-lint/issues/6205 is resolved

Copilot uses AI. Check for mistakes.
@jakebailey jakebailey added this pull request to the merge queue Dec 2, 2025
Merged via the queue into main with commit 320b8d9 Dec 2, 2025
28 checks passed
@jakebailey jakebailey deleted the jabaile/temp-workaround-gcl-git-bug branch December 2, 2025 23:20
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