Skip to content

feat(librarian): default settings for Swift packages#5280

Merged
coryan merged 2 commits intogoogleapis:mainfrom
coryan:feat-librarian-defaults-for-swift
Apr 14, 2026
Merged

feat(librarian): default settings for Swift packages#5280
coryan merged 2 commits intogoogleapis:mainfrom
coryan:feat-librarian-defaults-for-swift

Conversation

@coryan
Copy link
Copy Markdown
Contributor

@coryan coryan commented Apr 10, 2026

Most of the Swift packages will use a common configuration in librarian.yaml, this PR introduces that common configuration and uses it to populate each library's config.

Towards #5179

Most of the Swift packages will use a common configuration in `librarian.yaml`,
this PR introduces that common configuration and uses it to populate each
library's config.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

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 introduces Swift-specific configuration support, including default dependency filling, merging logic, and sorting during configuration tidying. A logic error was identified in the fillDefaults function where early returns prevent the application of defaults for multiple languages. It is recommended to refactor this function to process all language-specific defaults sequentially and to sort these checks alphabetically for consistency.

Comment thread internal/librarian/library.go
@coryan coryan marked this pull request as ready for review April 10, 2026 14:38
@coryan coryan requested a review from a team as a code owner April 10, 2026 14:38
@coryan coryan merged commit 21d928c into googleapis:main Apr 14, 2026
19 of 20 checks passed
@coryan coryan deleted the feat-librarian-defaults-for-swift branch April 14, 2026 00:09
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.

2 participants