GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — feat(librariangen): scaffold Java language container for Librarian by meltsufin · Pull Request #3926 · googleapis/sdk-platform-java
This repository was archived by the owner on Oct 29, 2026. It is now read-only.
Conversation
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The "internal" folder having only librariangen folder is strange. It's because we are not going to move other internal things (such as "hermetic_build") to the folder.
Shall we remove the "internal" folder?
For example, Python team's Dockerfile is at https://github.com/googleapis/google-cloud-python/tree/main/.generator.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| "testing" | ||
| ) | ||
|
|
||
| func TestRun(t *testing.T) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The argument parsing logic is to be in the shared module, so that each language container doesn't need to implement the argument parsing logic and its tests. https://github.com/googleapis/librarian/pull/2489/files#diff-704975122c152b21ff033c97bc92e9f3dc765402bf278620a3f88df835a9dd43R41
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
So you don't have to write many test cases for argument parsing.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
That's great, but let's integrate that in when it's ready.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It's nice that this started with small. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This is a Go convention for non-exported packages that is enforced by the compiler and I think it's appropriate for our use-case: https://go.dev/doc/go1.4#internalpackages. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@meltsufin Thank you for the info. The "internal" folder or its parent doesn't have go.mod. I'm not sure the "internal" is recognized as a package. Would you be willing to experiment the "internal" folder is indeed following https://go.dev/doc/go1.4#internalpackages ? I think it's a matter of whether a symbol (In another go program's |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
(Approving this to unblock the work) I still want to know the "internal" experiment above.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Tried importing from another module even within the same repo and got the expected: go.mod: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@meltsufin Thank you! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
🤖 I have created a release *beep* *boop* --- <details><summary>2.63.0</summary> ## [2.63.0](v2.62.3...v2.63.0) (2025-10-16) ### Features * **librariangen:** add bazel package ([#3940](#3940)) ([feabef3](feabef3)) * **librariangen:** add execv package ([#3932](#3932)) ([f6b0b47](f6b0b47)) * **librariangen:** add protoc package ([#3935](#3935)) ([598de06](598de06)) * **librariangen:** add request package ([#3933](#3933)) ([fe44aed](fe44aed)) * **librariangen:** scaffold Java language container for Librarian ([#3926](#3926)) ([29d188d](29d188d)) ### Dependencies * Bump errorprone-annotations to v2.42.0 ([8d6c1f9](8d6c1f9)) * Bump guava to v33.5.0 ([8d6c1f9](8d6c1f9)) * Bump j2objc-annotations to v3.1 ([8d6c1f9](8d6c1f9)) * update google auth library dependencies to v1.40.0 ([#3945](#3945)) ([1d74663](1d74663)) * Upgrade Google Http Java Client to v2.0.2 ([#3946](#3946)) ([7fb4f15](7fb4f15)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…3926) This change introduces the initial scaffolding for `librariangen`, a containerized Go application that will serve as the Java-specific code generator within the Librarian pipeline. The primary goal of this change is to establish the foundational components for the Java language container, including: * A new `librariangen` CLI application: Written in Go, this will be the entry point for Java code generation tasks invoked by Librarian. It currently includes basic command dispatching and support for `--version`. * A multi-stage `Dockerfile`: This creates a minimal container image for librariangen. * Unit tests and CI: A new GitHub Actions workflow has been added to build and test the librariangen executable. This scaffolding is the first step in implementing the full code generation logic within the Librarian system, eventually replacing the Java hermetic code generation system. The code is largely adapted from the Go language container at https://github.com/googleapis/google-cloud-go/tree/main/internal/librariangen. Fixes: googleapis/librarian#2500
🤖 I have created a release *beep* *boop* --- <details><summary>2.63.0</summary> ## [2.63.0](v2.62.3...v2.63.0) (2025-10-16) ### Features * **librariangen:** add bazel package ([#3940](#3940)) ([feabef3](feabef3)) * **librariangen:** add execv package ([#3932](#3932)) ([f6b0b47](f6b0b47)) * **librariangen:** add protoc package ([#3935](#3935)) ([598de06](598de06)) * **librariangen:** add request package ([#3933](#3933)) ([fe44aed](fe44aed)) * **librariangen:** scaffold Java language container for Librarian ([#3926](#3926)) ([29d188d](29d188d)) ### Dependencies * Bump errorprone-annotations to v2.42.0 ([8d6c1f9](8d6c1f9)) * Bump guava to v33.5.0 ([8d6c1f9](8d6c1f9)) * Bump j2objc-annotations to v3.1 ([8d6c1f9](8d6c1f9)) * update google auth library dependencies to v1.40.0 ([#3945](#3945)) ([1d74663](1d74663)) * Upgrade Google Http Java Client to v2.0.2 ([#3946](#3946)) ([7fb4f15](7fb4f15)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- <details><summary>2.63.0</summary> ## [2.63.0](googleapis/sdk-platform-java@v2.62.3...v2.63.0) (2025-10-16) ### Features * **librariangen:** add bazel package ([#3940](googleapis/sdk-platform-java#3940)) ([d6bd0e0](googleapis/sdk-platform-java@d6bd0e0)) * **librariangen:** add execv package ([#3932](googleapis/sdk-platform-java#3932)) ([7fc08a5](googleapis/sdk-platform-java@7fc08a5)) * **librariangen:** add protoc package ([#3935](googleapis/sdk-platform-java#3935)) ([c3f7b9f](googleapis/sdk-platform-java@c3f7b9f)) * **librariangen:** add request package ([#3933](googleapis/sdk-platform-java#3933)) ([c478a98](googleapis/sdk-platform-java@c478a98)) * **librariangen:** scaffold Java language container for Librarian ([#3926](googleapis/sdk-platform-java#3926)) ([aec74aa](googleapis/sdk-platform-java@aec74aa)) ### Dependencies * Bump errorprone-annotations to v2.42.0 ([4fa48a2](googleapis/sdk-platform-java@4fa48a2)) * Bump guava to v33.5.0 ([4fa48a2](googleapis/sdk-platform-java@4fa48a2)) * Bump j2objc-annotations to v3.1 ([4fa48a2](googleapis/sdk-platform-java@4fa48a2)) * update google auth library dependencies to v1.40.0 ([#3945](googleapis/sdk-platform-java#3945)) ([4b2c98e](googleapis/sdk-platform-java@4b2c98e)) * Upgrade Google Http Java Client to v2.0.2 ([#3946](googleapis/sdk-platform-java#3946)) ([89d518c](googleapis/sdk-platform-java@89d518c)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Java: Create Dockerfile for Java language container
There was an error while loading. Please reload this page.