Skip to content

chore(internal/librarian/golang): use cache package for tool installation#6327

Merged
JoeWang1127 merged 6 commits into
mainfrom
chore/java-bin
Jun 8, 2026
Merged

chore(internal/librarian/golang): use cache package for tool installation#6327
JoeWang1127 merged 6 commits into
mainfrom
chore/java-bin

Conversation

@JoeWang1127

@JoeWang1127 JoeWang1127 commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

The Go tool installation and execution logic is updated to use the shared cache.BinDirectory helper to resolve the installation path.

Go tools are now installed into a go_tools subdirectory within the standard binary directory resolved by the cache package.

For #5850

@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 installation directory resolution in the Java librarian module to use the centralized cache package. Specifically, getInstallDir now retrieves the binary directory via cache.BinDirectory(), and the corresponding test has been updated to use the cache.EnvLibrarianBin constant instead of a hardcoded environment variable string. There are no review comments, and I have no feedback to provide.

@JoeWang1127 JoeWang1127 changed the title chore(internal/librarian/java): use cache.BinDirectory for install path chore(internal/librarian/golang): use cache package for tool installation Jun 6, 2026
@JoeWang1127 JoeWang1127 reopened this Jun 6, 2026
@JoeWang1127
JoeWang1127 marked this pull request as ready for review June 6, 2026 14:46
@JoeWang1127
JoeWang1127 requested a review from a team as a code owner June 6, 2026 14:46
@JoeWang1127
JoeWang1127 requested a review from noahdietz June 6, 2026 14:46
@JoeWang1127
JoeWang1127 merged commit fa02c17 into main Jun 8, 2026
50 checks passed
@JoeWang1127
JoeWang1127 deleted the chore/java-bin branch June 8, 2026 17:21
haphungw pushed a commit to haphungw/librarian that referenced this pull request Jun 26, 2026
…tion (googleapis#6327)

The Go tool installation and execution logic is updated to use the
shared `cache.BinDirectory` helper to resolve the installation path.

Go tools are now installed into a `go_tools` subdirectory within the
standard binary directory resolved by the `cache` package.

For googleapis#5850
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