Skip to content

Fix protogen to only compile .proto files#238

Merged
rkannan82 merged 1 commit intomasterfrom
kannan/fix-protogen-yaml-filter
Mar 13, 2026
Merged

Fix protogen to only compile .proto files#238
rkannan82 merged 1 commit intomasterfrom
kannan/fix-protogen-yaml-filter

Conversation

@rkannan82
Copy link
Contributor

@rkannan82 rkannan82 commented Mar 13, 2026

Summary

  • Fix glob pattern in cmd/protogen/main.go runProtoc to match *.proto instead of *
  • Without this fix, non-proto files (e.g. .yaml Nexus service definitions) in proto directories are passed to protoc, causing compilation failures

Context

The API repo now has .yaml service definition files alongside .proto files (for Nexus services). The protogen tool, which is installed by the API repo's CI, was picking up these .yaml files and passing them to protoc.

The glob pattern in runProtoc matched all files in proto directories,
which breaks compilation when non-proto files (e.g. .yaml service
definitions) are present alongside .proto files.

Made-with: Cursor
@rkannan82 rkannan82 requested review from a team as code owners March 13, 2026 21:44
@CLAassistant
Copy link

CLAassistant commented Mar 13, 2026

CLA assistant check
All committers have signed the CLA.

@rkannan82 rkannan82 requested a review from bergundy March 13, 2026 21:47
@rkannan82 rkannan82 enabled auto-merge (squash) March 13, 2026 23:43
@rkannan82 rkannan82 merged commit 34df2ca into master Mar 13, 2026
4 checks passed
@rkannan82 rkannan82 deleted the kannan/fix-protogen-yaml-filter branch March 13, 2026 23:44
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