:wave:I'm trying to update a provider using the ne...
# contribex
f
👋I'm trying to update a provider using the newly-released 3.24.1 version of the
pulumi-terraform-bridge
and am running into the following error trying to rebuild the tfgen binary:
Copy code
# <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2>
/home/maier/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.24.1/pkg/tfshim/sdk-v2/upgrade_state.go:52:48: too many arguments in call to schema.RemoveAttributes
        have (context.Context, map[string]interface{}, cty.Type)
        want (interface{}, cty.Type)
I'm not quite sure where to start with this... any suggestions?
s
You need to update your
pulumi/terraform-plugin-sdk
replace
directive to
upstream-v2.16.0
.
We unfortunately had to fork the plugin SDK and export some non-exported functions -
RemoveAttributes
is one of them.
f
OK, I think that got me sorted. I ended up having to also add another replacement:
Copy code
<http://github.com/hashicorp/terraform-exec|github.com/hashicorp/terraform-exec> => <http://github.com/hashicorp/terraform-exec|github.com/hashicorp/terraform-exec> v0.15.0
🤔
s
Yeah, that's a replace I've had to add from time to time.