pulumi/pulumi-aws

Format method: runtime error rendered into docs

t0yv0 opened this issue · 2 comments

t0yv0 commented

What happened?

https://www.pulumi.com/registry/packages/aws/api-docs/iot/getendpoint/ see the Java pane.

The code says:


public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = IotFunctions.getEndpoint();

        var agent = new Kubernetes_pod("agent", Kubernetes_podArgs.builder()        
            .metadata(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
            .spec(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
            .build());

    }
}

Looks like something is rendering a PANIC into the example.

Example

See above.

Output of pulumi about

N/A

Additional context

N/A

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).

iwahbe commented

@t0yv0 My understanding is that this is a program-gen issue. Should we transfer it to pulumi/pulumi?

t0yv0 commented

Ah yes, let me run one more check here. I can see if this persists under PULUMI_CONVERT=1 and if so extract a minimal repro in terms of pulumi convert.