pulumi / pulumi-yaml

YAML language provider for Pulumi
Apache License 2.0
38 stars 11 forks source link

codegen: Components not implemented yet #476

Open abhinav opened 1 year ago

abhinav commented 1 year ago

Hello!

Issue details

TestGenerateProgram/components currently fails on this repository with:

% PULUMI_ACCEPT=true go test -run=TestGenerate
--- FAIL: TestGenerateProgram (0.78s)
    --- FAIL: TestGenerateProgram/components (0.00s)
panic: Not implemented yet [recovered]
        panic: Not implemented yet

goroutine 329 [running]:
testing.tRunner.func1.2({0x101d09e40, 0x10210b7d8})
        /opt/homebrew/Cellar/go/1.20.6/libexec/src/testing/testing.go:1526 +0x1c8
testing.tRunner.func1()
        /opt/homebrew/Cellar/go/1.20.6/libexec/src/testing/testing.go:1529 +0x384
panic({0x101d09e40, 0x10210b7d8})
        /opt/homebrew/Cellar/go/1.20.6/libexec/src/runtime/panic.go:884 +0x204
github.com/pulumi/pulumi-yaml/pkg/pulumiyaml/codegen.(*generator).genNode(0x101dd95c0?, {0x1021368b0?, 0x140010964d0?})
        /Users/abg/src/pulumi/yaml/pkg/pulumiyaml/codegen/gen_program.go:162 +0xb0
github.com/pulumi/pulumi-yaml/pkg/pulumiyaml/codegen.GenerateProgram(0x14001c77700)
        /Users/abg/src/pulumi/yaml/pkg/pulumiyaml/codegen/gen_program.go:46 +0x250
github.com/pulumi/pulumi/pkg/v3/codegen/testing/test.TestProgramCodegen.func1(0x14000dd04e0)
        /Users/abg/go/pkg/mod/github.com/pulumi/pulumi/pkg/v3@v3.76.1/codegen/testing/test/program_driver.go:589 +0xee8
testing.tRunner(0x14000dd04e0, 0x140001cea50)
        /opt/homebrew/Cellar/go/1.20.6/libexec/src/testing/testing.go:1576 +0x10c
created by testing.(*T).Run
        /opt/homebrew/Cellar/go/1.20.6/libexec/src/testing/testing.go:1629 +0x368
exit status 2
FAIL    github.com/pulumi/pulumi-yaml/pkg/pulumiyaml/codegen    0.825s

This tracks fixing the issue.

Feel free to close this issue if this functionality is not intended to be added for pulumi-yaml.

Discovered in #474

Affected area/feature