https://pulumi.com logo
c

cuddly-barista-79466

11/16/2018, 4:49 PM
Trying to install the tf2pulumi following the README but i am getting an error from the first step
go get <http://github.com/pulumi/tf2pulumi/|github.com/pulumi/tf2pulumi/>...
“Impossible type assertion”
go/src/github.com/pulumi/tf2pulumi/il/builtin_providers.go3129: impossible type assertion: *schema.Provider does not implement “github.com/terraform-providers/terraform-provider-archive/vendor/github.com/hashicorp/terraform/terraform”.ResourceProvider (wrong type for Apply method) have Apply(*“github.com/hashicorp/terraform/terraform”.InstanceInfo, *“github.com/hashicorp/terraform/terraform”.InstanceState, *“github.com/hashicorp/terraform/terraform”.InstanceDiff) (*“github.com/hashicorp/terraform/terraform”.InstanceState, error) want Apply(*“github.com/terraform-providers/terraform-provider-archive/vendor/github.com/hashicorp/terraform/terraform”.InstanceInfo, *“github.com/terraform-providers/terraform-provider-archive/vendor/github.com/hashicorp/terraform/terraform”.InstanceState, *“github.com/terraform-providers/terraform-provider-archive/vendor/github.com/hashicorp/terraform/terraform”.InstanceDiff) (*“github.com/terraform-providers/terraform-provider-archive/vendor/github.com/hashicorp/terraform/terraform”.InstanceState, error) go/src/github.com/pulumi/tf2pulumi/il/builtin_providers.go4126: impossible type assertion: *schema.Provider does not implement “github.com/terraform-providers/terraform-provider-http/vendor/github.com/hashicorp/terraform/terraform”.ResourceProvider (wrong type for Apply method) have Apply(*“github.com/hashicorp/terraform/terraform”.InstanceInfo, *“github.com/hashicorp/terraform/terraform”.InstanceState, *“github.com/hashicorp/terraform/terraform”.InstanceDiff) (*“github.com/hashicorp/terraform/terraform”.InstanceState, error) want Apply(*“github.com/terraform-providers/terraform-provider-http/vendor/github.com/hashicorp/terraform/terraform”.InstanceInfo, *“github.com/terraform-providers/terraform-provider-http/vendor/github.com/hashicorp/terraform/terraform”.InstanceState, *“github.com/terraform-providers/terraform-provider-http/vendor/github.com/hashicorp/terraform/terraform”.InstanceDiff) (*“github.com/terraform-providers/terraform-provider-http/vendor/github.com/hashicorp/terraform/terraform”.InstanceState, error)
w

white-balloon-205

11/16/2018, 4:54 PM
Just tried myself, and it worked for me. Are you sure you did the
dep ensure
step and it succeeded? Do you have a
vendor
folder inside
tf2pulumi
? The above error suggests that vendored dependencies are not being found.
c

cuddly-barista-79466

11/16/2018, 4:56 PM
It seems to build and install but I wasn’t sure those vendor related providers were needed.
And there is a vendor folder in tf2pulumi
w

white-balloon-205

11/16/2018, 4:59 PM
I see. Is it working for you now? It may be that the
go get
in the first step is trying to build? If so that won't work and we'll need to suggest git clone instead. Definitely would like to offer binaries/installers here as well.
c

cuddly-barista-79466

11/16/2018, 5:01 PM
Coming back to this from yesterday, i think I ended up going that route with git clone
Yeah. the go get is not getting vendors/dependencies
thanks for clarifying
w

white-balloon-205

11/16/2018, 5:05 PM
Ahh - looks like we should pass
-d
to the
go get
command to ensure it doesn't try to build (which won't work as you point out here). Will fix.
👍 1