Repository navigation
refactor(internal/librarian/java): resolve tool paths using central cache - #6331
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the Java tools installer to resolve the installation directory using the central cache package instead of the LIBRARIAN_INSTALL_DIR environment variable. The review feedback recommends placing the executable wrappers directly in the central bin directory (cache.BinDirectory()) rather than nesting them under a subdirectory, which simplifies the user's PATH configuration. Consequently, the helper function getInstallDir() can be removed, and the corresponding tests should be updated to verify the wrappers in the root of the temporary bin directory.
suztomo
approved these changes
Jun 8, 2026
haphungw
pushed a commit
to haphungw/librarian
that referenced
this pull request
Jun 26, 2026
…ache (googleapis#6331) The Java tools installer and command runners are refactored to use the central cache directory resolved via the cache package instead of a hardcoded location under the user home directory. The command runner helper inside the command package is also updated to properly merge the `PATH` environment variable for child processes, ensuring that wrappers which depend on system utilities (like `java`) function correctly when executed. For googleapis#5850
haphungw
pushed a commit
to haphungw/librarian
that referenced
this pull request
Jun 26, 2026
…ob (googleapis#6372) Updates the integration job in the Java workflow to use the centralized cache path ($HOME/.cache/librarian/bin/java_tools/bin) when updating GITHUB_PATH. Following googleapis#6331, this path should be updated same as the test job.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Java tools installer and command runners are refactored to use the central cache directory resolved via the cache package instead of a hardcoded location under the user home directory.
The command runner helper inside the command package is also updated to properly merge the
PATHenvironment variable for child processes, ensuring that wrappers which depend on system utilities (likejava) function correctly when executed.For #5850