numerous-piano-36614
06/01/2021, 7:51 PMsdk/
folder? I wrote minimal Java code generator (gen.go
) which generates Config.java
file. Also, I discovered that GeneratePackage()
function is executed only in tests and I guess this is “main entrypoint” for generating files, right? But I found out that code is being generated inside the internal testdata folder. Could you give us some information, how Pulumi team generates language files in sdk/
folder?billowy-army-68599
06/01/2021, 8:01 PMwhite-balloon-205
06/01/2021, 8:08 PMGeneratePackage
functions for each language are called from the various package generators - including:
• https://github.com/pulumi/pulumi-terraform-bridge/blob/30ae8ae5cc2d2f5987854984243c74ace4ccc952/pkg/tfgen/generate.go (for all Terraform Bridged providers)
• https://github.com/pulumi/pulumi-azure-native/blob/master/provider/cmd/pulumi-gen-azure-native/main.go (for the Azure Native Provider)
• Etc.numerous-piano-36614
06/01/2021, 8:23 PMbrave-dawn-64711
06/02/2021, 10:00 AMbored-oyster-3147
06/02/2021, 11:47 AMbrave-dawn-64711
06/02/2021, 1:26 PMbillowy-army-68599
06/02/2021, 3:22 PMworried-city-86458
06/11/2021, 1:34 AMwhite-balloon-205
06/11/2021, 1:47 AMbrave-dawn-64711
06/18/2021, 9:01 AM- 1-to-1-ish port of C# SDK implementation to Java
- mostly complete implementation - Automation API is missing
- it compiles, unit tests run
Current Limitations:
- changes in usage and implementation due to lack of generic types reification in Java
- lack of AsyncLocal
- lack of AsyncIterator
There are a lot of TODOs, also needs rebasing, but there is already a lot of code written and it took a lot longer than I anticipated, so just to be sure no one is duplicating this effort 🙂
Next we'll finish an initial implementation for the code generation and try to generate some providers.broad-dog-22463
08/16/2021, 2:56 PMbored-oyster-3147
08/16/2021, 3:48 PMbrave-dawn-64711
08/17/2021, 7:04 AMbroad-dog-22463
08/17/2021, 11:23 AMwhite-balloon-205
08/17/2021, 3:34 PMtall-librarian-49374
08/17/2021, 3:38 PMbrave-dawn-64711
08/17/2021, 4:06 PMwhite-balloon-205
10/08/2021, 3:32 AMlimited-rainbow-51650
10/08/2021, 6:12 AMbrave-dawn-64711
10/08/2021, 8:08 AMwhite-balloon-205
10/09/2021, 12:59 AMbrave-dawn-64711
10/28/2021, 12:39 PMbroad-dog-22463
10/28/2021, 1:48 PM