Skip to content

feat(internal/librarian/golang): restructure Go configuration in librarian.yaml (#5471)#6009

Merged
suztomo merged 17 commits into
googleapis:mainfrom
suztomo:feat-restructure-go-config-only
May 14, 2026
Merged

feat(internal/librarian/golang): restructure Go configuration in librarian.yaml (#5471)#6009
suztomo merged 17 commits into
googleapis:mainfrom
suztomo:feat-restructure-go-config-only

Conversation

@suztomo

@suztomo suztomo commented May 14, 2026

Copy link
Copy Markdown
Member

This PR re-applies the Go configuration restructuring from PR #5975, nesting Go configuration under API entries. This PR will be merged concurrently with the companion configuration migration in google-cloud-go.

suztomo added 17 commits May 14, 2026 18:38
This removes support for top-level Go defaults (Issue googleapis#5246) to focus this branch solely on nesting Go configuration under API entries (Issue googleapis#5471).
With Go configuration now nested directly under API entries (Issue googleapis#5471), the API path is always known from the containing API structure. Removing GoAPI.Path eliminates redundancy and prevents potential state drift.
@suztomo suztomo requested a review from a team as a code owner May 14, 2026 18:39

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request refactors the configuration schema by moving the Go-specific API configuration (GoAPI) from a list within the GoModule struct directly into the API struct. This change simplifies the association between an API path and its Go-specific settings. Corresponding updates were made to the documentation, configuration parsing, generation logic, and the entire test suite to accommodate this structural shift. I have no feedback to provide as there were no review comments to assess.

@suztomo suztomo marked this pull request as draft May 14, 2026 18:45
@suztomo suztomo marked this pull request as ready for review May 14, 2026 19:32
@suztomo suztomo merged commit d1beeb4 into googleapis:main May 14, 2026
25 of 26 checks passed
@suztomo

suztomo commented May 14, 2026

Copy link
Copy Markdown
Member Author

I accidentally merged this. Reverting.

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.

1 participant