new provider

163 views
Skip to first unread message

Sanjay Shitole

unread,
Oct 8, 2016, 9:50:54 PM10/8/16
to Terraform
Hello Folks,
I am new to terraform, I am trying to create a Provider but getting error, any help is appreciated

SJC-ML-SHITOLE:~ shitole$ echo $GOPATH

/Users/shitole/work/src/github/scshitole/hello

SJC-ML-SHITOLE:~ shitole$ 

SJC-ML-SHITOLE:~ shitole$ cd /Users/shitole/work/src/github/scshitole/hello

SJC-ML-SHITOLE:hello shitole$ go build -o terraform-provider-BIGIP

provider.go:4:5: cannot find package "github.com/hashicorp/terraform/helper/schema" in any of:

/usr/local/go/src/github.com/hashicorp/terraform/helper/schema (from $GOROOT)

/Users/shitole/work/src/github/scshitole/hello/src/github.com/hashicorp/terraform/helper/schema (from $GOPATH)

main.go:4:5: cannot find package "github.com/hashicorp/terraform/plugin" in any of:

/usr/local/go/src/github.com/hashicorp/terraform/plugin (from $GOROOT)

/Users/shitole/work/src/github/scshitole/hello/src/github.com/hashicorp/terraform/plugin (from $GOPATH)

SJC-ML-SHITOLE:hello shitole$ 


Jack Pearkes

unread,
Nov 3, 2016, 7:29:42 PM11/3/16
to Terraform
Sanjay,

Looks like you may need to fetch some dependencies in your development environment so as to properly develop the provider. I recommend reading about Go dependency management – in this case using `go get` to fetch the project dependencies should resolve the errors you're seeing.

Additionally, there are some great videos about building providers available from HashiConf by members of the Terraform team:


I'd recommend watching these. Also, be sure to read the contributing guide to Terraform: https://github.com/hashicorp/terraform/blob/master/.github/CONTRIBUTING.md.

However, I'd recommend reading details about how Go does dependency management to get past the issues you ares saying.

Best,

Jack
Reply all
Reply to author
Forward
0 new messages