Skip to content

cleanup(sidekick/swift): library vs. package names#6998

Merged
coryan merged 7 commits into
googleapis:mainfrom
coryan:cleanup-swift-library-vs-package-name
Jul 25, 2026
Merged

cleanup(sidekick/swift): library vs. package names#6998
coryan merged 7 commits into
googleapis:mainfrom
coryan:cleanup-swift-library-vs-package-name

Conversation

@coryan

@coryan coryan commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Use different annotations for the package name (e.g. google-cloud-workflows-v1) vs. the library name (e.g. GoogleCloudWorkflowsV1). In a future PR we will change the default library name and introduce options to override it.

Towards #6229

@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 Swift sidekick generator to separate the hyphenated PackageName from the CamelCase LibraryName. It introduces a new LibraryName helper, updates the codec struct, templates, and tests to use these distinct fields, and ensures correct naming in generated files and dependencies. All review comments have been addressed in the changes, so we have no further feedback to provide.

@coryan
coryan marked this pull request as ready for review July 23, 2026 19:26
@coryan
coryan requested a review from a team as a code owner July 23, 2026 19:26

@nolanleastin nolanleastin 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.

should generate_package_swift_test.go test this too?

Comment thread internal/sidekick/swift/library_name.go Outdated
Comment thread internal/sidekick/swift/library_name.go Outdated
Comment thread internal/sidekick/swift/codec.go Outdated
Comment thread internal/sidekick/swift/library_name_test.go
coryan added 6 commits July 24, 2026 19:46
Use different annotations for the package name (e.g.
`google-cloud-workflows-v1`) vs. the library name (e.g.
`GoogleCloudWorkflowsV1`). In a future PR we will change the default library
name and introduce options to override it.
@coryan
coryan force-pushed the cleanup-swift-library-vs-package-name branch from 76d41c6 to 44f36d6 Compare July 24, 2026 23:48
@coryan

coryan commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

should generate_package_swift_test.go test this too?

Done.

@coryan
coryan enabled auto-merge (squash) July 25, 2026 00:00
@coryan
coryan merged commit 62ab02e into googleapis:main Jul 25, 2026
36 of 37 checks passed
@coryan
coryan deleted the cleanup-swift-library-vs-package-name branch July 25, 2026 00:13
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