Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement GeneratePackage #1470

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Implement GeneratePackage #1470

merged 1 commit into from
Nov 18, 2024

Conversation

lunaris
Copy link
Contributor

@lunaris lunaris commented Nov 18, 2024

The GeneratePackage method of the LanguageRuntime gRPC service allows callers to generate SDKs for a specified schema. This commits implements this endpoint for pulumi-language-java, using the existing pkg/codegen functionality that is currently only exposed through the pulumi-java-gen binary. Doing so means we can begin to get conformance tests working for Java.

As part of this work, we extend the work we started when implementing GenerateProject to support local repositories in generated SDKs. As with other languages, we add a field to PackageInfo to this end. Since SDK generation uses Gradle (and not Maven, as program generation does), there is a bit of new plumbing to do here, but in principle the outcome is the same.

Note

It is not certain yet that GeneratePackage behaves identically to the currently-used binary endpoint in pulumi-java-gen -- we should make sure of this before switching over. This work is primarily a means to get conformance tests going.

@lunaris lunaris requested a review from a team as a code owner November 18, 2024 13:23
The `GeneratePackage` method of the `LanguageRuntime` gRPC service allows
callers to generate SDKs for a specified schema. This commits implements this
endpoint for `pulumi-language-java`, using the existing `pkg/codegen`
functionality that is currently only exposed through the `pulumi-java-gen`
binary. Doing so means we can begin to get conformance tests working for Java.

As part of this work, we extend the work we started when implementing
`GenerateProject` to support local repositories in generated SDKs. As with other
languages, we add a field to `PackageInfo` to this end. Since SDK generation
uses Gradle (and not Maven, as program generation does), there is a bit of new
plumbing to do here, but in principle the outcome is the same.

> [!NOTE]
> It is not certain yet that `GeneratePackage` behaves identically to the
> currently-used binary endpoint in `pulumi-java-gen` -- we should make sure of
> this before switching over. This work is primarily a means to get conformance
> tests going.
@lunaris lunaris merged commit e8469ea into main Nov 18, 2024
23 checks passed
@lunaris lunaris deleted the wjones/gen-pkg branch November 18, 2024 16:33
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