terraform-provider-aws: cannot use ResourceProvider as type ProviderFunc in field value
Hey, team!
I’m trying to contribute but unfortunately tests are failing out of the gate. I haven’t made any modifications to my fork of the repo at all. I cloned then ran go get github.com/nathanielks/terraform-provider-aws to download it.
Terraform Version
Terraform v0.10.7
Debug Output
https://gist.github.com/nathanielks/8e2ac160c09258c4ece0ccb2f097a1ae
Expected Behavior
Tests should pass as I pulled off of master which should be stable.
Actual Behavior
Tests are failing with error:
terraform-provider-aws/main.go:10: cannot use "github.com/terraform-providers/terraform-provider-aws/aws".Provider (type func() "github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform/terraform".ResourceProvider) as type "github.com/nathanielks/terraform-provider-aws/vendor/github.com/hashicorp/terraform/plugin".ProviderFunc in field value
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
go get github.com/nathanielks/terraform
Important Factoids
Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
- GH-1234
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (6 by maintainers)
I can confirm @jwermuth. I had to rename the directory to
$GOPATH/src/github.com/terraform-providers/terraform-provider-awsinstead of$GOPATH/src/github.com/nathanielks/terraform-provider-aws.Okey, I create full path in GOPATH and now everything works o_O