Skip to content

gh: fixed go-generate cleanup to match recursively and tolerate empty grep#317

Merged
azazeal merged 1 commit intomainfrom
panos/fix/globs
May 6, 2026
Merged

gh: fixed go-generate cleanup to match recursively and tolerate empty grep#317
azazeal merged 1 commit intomainfrom
panos/fix/globs

Conversation

@azazeal
Copy link
Copy Markdown
Contributor

@azazeal azazeal commented May 6, 2026

This commit fixes the misfire with regards to go generate cleanup I merged with #316.

@azazeal azazeal marked this pull request as ready for review May 6, 2026 10:14
@azazeal azazeal requested a review from a team as a code owner May 6, 2026 10:14
@azazeal azazeal requested a review from Copilot May 6, 2026 10:14
@azazeal azazeal marked this pull request as draft May 6, 2026 10:16
Copy link
Copy Markdown

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 adjusts the go generate cleanup step in the goLint reusable workflow to correctly match generated .go files recursively and to avoid failing when git grep returns no matches (as referenced by the misfire from #316).

Changes:

  • Updated the git grep pathspecs to match **/*.go recursively and to exclude **/*.pb.go.
  • Attempted to tolerate git grep’s “no matches” exit code during cleanup prior to running go generate.

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

Comment thread .github/workflows/goLint.yml Outdated
@azazeal azazeal force-pushed the panos/fix/globs branch from b2c8085 to bfd9b2a Compare May 6, 2026 10:26
@azazeal azazeal marked this pull request as ready for review May 6, 2026 10:27
@azazeal azazeal requested review from Copilot and hslatman May 6, 2026 10:27
hslatman
hslatman previously approved these changes May 6, 2026
Copy link
Copy Markdown

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

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

Comment thread .github/workflows/goLint.yml Outdated
Comment thread .github/workflows/goLint.yml Outdated
Copy link
Copy Markdown

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

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

Comment thread .github/workflows/goLint.yml
Comment thread .github/workflows/goLint.yml
Copy link
Copy Markdown

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

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

Comment thread .github/workflows/goLint.yml
@azazeal azazeal enabled auto-merge May 6, 2026 11:00
@azazeal azazeal merged commit 817c024 into main May 6, 2026
11 checks passed
@azazeal azazeal deleted the panos/fix/globs branch May 6, 2026 11:11
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