pulumi / pulumi/pulumi-java

Program generation invalid for list variable

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

Nobody has claimed this yet.

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

Description

What happened?

Generating a program with a variable which is a list will generate invalid code

Steps to reproduce
variables:
  test:
    - foo
    - bar
Expected Behavior
        final var test = List.of(
            "foo",
            "bar");
Actual Behavior
        final var test =
            "foo",
            "bar";
Output of pulumi about

No response

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

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

Start by reproducing the YAML list variable and locating the program-generation entry point that produces the shown Java output. Compare the generated declaration with the expected List.of form, then verify that list variables consistently produce valid Java code.

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.