pulumi / upgrade-provider

A tool to automate provider upgrades on your local machine
6 stars 1 forks source link

`--kind code` duplicates the `MetadataInfo` field #260

Open iwahbe opened 6 months ago

iwahbe commented 6 months ago

Taken from https://github.com/pulumi/upgrade-provider/issues/258#issuecomment-2079643506

For example running with --kind code I get the error below.

./resources.go:174:18: duplicate field name MetadataInfo in struct literal
make: *** [tfgen] Error 1

I already have MetadataInfo and when running the command it adds MetadataInfo again to resource.go. Below is the duplicate it adds

, MetadataInfo:

        // These are new API's that you may opt to use to automatically compute resource
        // tokens, and apply auto aliasing for full backwards compatibility.  For more
        // information, please reference:
        // https://pkg.go.dev/github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge#ProviderInfo.ComputeTokens
        tfbridge.NewProviderMetadata(metadata),