Skip to content

Revert "chore(internal/librarian/nodejs): derive package names in defaults" - #7577

Merged
zhumin8 merged 1 commit into
mainfrom
revert-7575-nodejs-derive-package-name-defaults
Sep 11, 2026
Merged

zhumin8 merged 1 commit into
mainfrom
revert-7575-nodejs-derive-package-name-defaults

Conversation

@zhumin8

@zhumin8 zhumin8 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Reverts #7575.

Fix #7576

@zhumin8
zhumin8 requested a review from a team as a code owner September 11, 2026 21:40

@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 removes the explicit Node.js default-filling step and instead dynamically derives the Node.js package name from the library name during generation. Feedback suggests simplifying the derivePackageNameFromLibraryName helper function by using strings.SplitN instead of manual index tracking and slicing to improve readability and safety.

Comment thread internal/librarian/nodejs/generate.go Resolved
@zhumin8
zhumin8 merged commit c2769bd into main Sep 11, 2026
83 of 84 checks passed
@zhumin8
zhumin8 deleted the revert-7575-nodejs-derive-package-name-defaults branch September 11, 2026 21: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.

google-cloud-node: librarian generate fails when run at HEAD

2 participants