white-answer-67284
12/15/2025, 12:54 AMpulumi.RunFunc, and we’re integrating a Terraform provider via pulumi package add.
I’m trying to decide what to do about the generated Go SDK code (sdks/<provider>/...) that comes from pulumi package add terraform-provider kong/konnect.
The SDK works only after some manual fixes (e.g. removing broken files, patching provider.go), and then it’s imported by the main program to provision resources.
My question:
For people building similar platforms — do you check the generated SDK code into version control, or do you treat it like any other build artifact and regenerate as needed?
I’m leaning toward checking it in because:
• The SDK requires manual patches
• It simplifies onboarding
• I want deterministic builds across environments
But I’d love to hear what others in the Pulumi community are doing. Any best practices, war stories, or gotchas?little-cartoon-10569
12/15/2025, 1:22 AM// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***limited-rainbow-51650
12/15/2025, 3:37 PMpulumi package add, you do not need to commit this code to your repo. If someone checks out a project using an upstream TF provider via Any TF, the SDK is regenerated when running pulumi install instead of the install command from your package manager (npm ci, pip install, ...). The Pulumi command will regenerate the SDK followed by running your package manager install command.mammoth-restaurant-4670
12/15/2025, 5:37 PMwhite-answer-67284
12/15/2025, 9:02 PMv3.210.0
• language go
• go version: go version go1.24.0 darwin/arm64
Steps to reproduce:
1. mkdir provider-debug-dir && cd provider-debug-dir
2. pulumi new go -y
3. pulumi package add terraform-provider kong/konnect
4. cd sdks/konnect
5. go mod tidy
At this point, two compilation errors are visible in the generated code:
konnect/provider.go:122:10: cannot use providerTerraformConfigResultOutput{} (value of type providerTerraformConfigResultOutput) as pulumi.MapOutput value in return statement
After fixing that one manually, there is one more
konnect/getPlatformIpAddresses.go:78:62: undefined: pulumi.StringArrayMapMapOutput
konnect/getPlatformIpAddresses.go:79:116: undefined: pulumi.StringArrayMapMapOutput
As a quick-and-dirty fix I just deleted that file. Then I was able to use the generated sdk successfully (and it works)
Hence, my philosophical question - as in my case, checking it in would make sense because some manual remediation was necessary.white-answer-67284
12/15/2025, 9:06 PMv3.212.0 . I updated and re-generated the code, and now the provider.go file is fine, but the compilation error in the platformIpAddress is still there.mammoth-restaurant-4670
12/15/2025, 11:15 PMwhite-answer-67284
12/15/2025, 11:30 PMwhite-answer-67284
12/16/2025, 3:37 PMtall-answer-32218
12/29/2025, 6:30 PM