hooklift / terraform-provider-vix

VMware VIX provider for Terraform
Mozilla Public License 2.0
103 stars 22 forks source link

unable to build on OSX #38

Open cledorze opened 6 years ago

cledorze commented 6 years ago

Hi

On OSX :

I'm able to build & test govix and 'go get -u github.com/hooklift/govmx', but can't build terraform-provider-vix :

MyBox:terraform-provider-vix tofix$ make
go build
# terraform-provider-vix
./main.go:13:15: cannot use provider.Provider (type func() "github.com/hooklift/terraform-provider-vix/vendor/github.com/hashicorp/terraform/terraform".ResourceProvider) as type "terraform-provider-vix/vendor/github.com/hashicorp/terraform/plugin".ProviderFunc in field value
make: *** [build] Error 2

Also, LD libs are set to the directory where govix have been built :

MyBox:terraform-provider-vix tofix$ echo $DYLD_LIBRARY_PATH
/Users/tofix/Labs/Go/src/govix/vendor/libvix/

Any idea of what I'm doing wrong?

c4milo commented 6 years ago

terraform version?

cledorze commented 6 years ago

Same result on both :

- Terraform v0.11.2-dev
- Terraform v0.11.1
c4milo commented 6 years ago

ah, I see, yes, some breaking changes have happened in Terraform and this plugin isn't working well with them. It needs to be updated but I don't really have a lot of time these days, unfortunately. Any help is very much appreciated.