pulumi / pulumi/pulumi-java

`pulumi convert` Java code-gen does not emit `import`s

Open
#699 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/codegen kind/bug language/java
Dominant language
Java
Stars
85
Forks
26
Avg merge
11h 49m
Merged PRs (30d)
22

Description

When converting a YAML file that uses, say, AWS resources, various imports like the following:

import com.pulumi.aws.*;
import com.pulumi.aws.inputs.*;
import com.pulumi.aws.ec2.*;
import com.pulumi.aws.ec2.inputs.*;

Are missing entirely from the generated code.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by converting a YAML file that uses AWS resources, then inspect the generated Java source for missing imports. Trace the Java code-generation path used by pulumi convert; done means the generated code includes the required Pulumi AWS, resource, and input imports.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.