Closed twingate-blee closed 7 months ago
Hey @twingate-blee. Thanks for reporting this to us.
@iwahbe Any diagnosis of what is going on in this case?
@twingate-blee As I understand it, this error only shows up when upgrade-provider
is run via pulumi/pulumi-upgrade-provider-action. We haven't seen this in any of our providers (all of which use pulumi/pulumi-upgrade-provider-action.
Is this still happening? Is the repo public (so I can see the logs)?
This is no longer happening but I'm getting other errors.
I was finally able to get this to successfully run by passing --kind provider
Any other option passed to --kind gives me various errors.
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),
Thanks for responding. I'm glad go get
is no longer failing. Did you ever figure out why the failure was happening?
The --kind code
looks like a much more straightforward error. I'll take a look.
I opened https://github.com/pulumi/upgrade-provider/issues/260 to track the MetadataInfo bug.
What happened?
upgrade-provider script errors when there is an update. When I update everything manually and run it works fine output of "No actions needed"
Example
Errors when using github action
Or command line
~/go/bin/upgrade-provider /pulumi- --upstream-provider-name terraform-provider- twingate --upstream-provider-org --allow-missing-docs --remove-plugins
Output of
pulumi about
CLI Version 3.109.0 Go Version go1.22.0 Go Compiler gc
Host OS darwin Version 14.4 Arch x86_64
Backend Name pulumi.com
Additional context
No response
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).