Skip to content

fix(internal/librarian/java): install to use config.Tools instead of embedded librarian.yaml#6157

Merged
zhumin8 merged 5 commits into
googleapis:mainfrom
zhumin8:fix-install-migrate
May 26, 2026
Merged

fix(internal/librarian/java): install to use config.Tools instead of embedded librarian.yaml#6157
zhumin8 merged 5 commits into
googleapis:mainfrom
zhumin8:fix-install-migrate

Conversation

@zhumin8
Copy link
Copy Markdown
Contributor

@zhumin8 zhumin8 commented May 23, 2026

Refactor Java install to used config.Tools from librarian.yaml from language repo instead of embedded librarian.yaml. Use embedded librarian.yaml instead in migrate tool to populate librarian.yaml tools section.

Also updated protoc-gen-grpc-java version to 1.81.0 to match version used in google-cloud-java hermetic build.

Fixes #6155

@zhumin8 zhumin8 force-pushed the fix-install-migrate branch from 497c514 to 74dc412 Compare May 23, 2026 18:57
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 refactors the Java tool installation logic to accept configuration tools as a parameter rather than relying on an embedded YAML file within the java package. The responsibility for providing the tool configuration has been shifted to the caller, specifically within the migration tool where the YAML is now embedded and unmarshaled. Additionally, the protoc-gen-grpc-java version has been updated to 1.81.0 across the codebase and tests, and the migration tests have been refactored for better maintainability. I have no feedback to provide.

@zhumin8 zhumin8 marked this pull request as ready for review May 23, 2026 19:05
@zhumin8 zhumin8 requested a review from a team as a code owner May 23, 2026 19:05
Comment thread tool/cmd/migrate/java_test.go
Comment thread tool/cmd/migrate/java_test.go Outdated
Comment thread tool/cmd/migrate/java.go
@zhumin8 zhumin8 requested a review from JoeWang1127 May 26, 2026 14:24
@zhumin8 zhumin8 merged commit b06a4b5 into googleapis:main May 26, 2026
29 checks passed
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.

java: install to use google-cloud-java/librarian.yaml

2 participants