https://pulumi.com logo
Title
f

full-artist-27215

05/26/2022, 4:21 PM
👋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:
# <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

stocky-restaurant-98004

05/26/2022, 5:23 PM
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

full-artist-27215

05/26/2022, 5:45 PM
OK, I think that got me sorted. I ended up having to also add another replacement:
<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

stocky-restaurant-98004

05/31/2022, 3:23 PM
Yeah, that's a replace I've had to add from time to time.