-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible API version with plugin #30
Comments
Yep got the same error sadly @kostyrevaa |
This seems to be caused by this commit: hashicorp/terraform@b3124e1 They've bumped the number in the repo, so things built against HEAD of terraform will be version 2. |
Ah thanks @akerl |
@AndreaCrotti we're you able to recompile it? Or any instructions how to recompile this? thanks. |
@cocoy Here are instructions how to recompile on Fedora 24 box $ vagrant init fedora/24-cloud-base; vagrant up --provider virtualbox
$ vagrant ssh default
[vagrant@localhost ~]$ sudo dnf install go -y
[vagrant@localhost ~]$ mkdir -p $HOME/work
[vagrant@localhost ~]$ echo 'export GOPATH=$HOME/work' >> $HOME/.bashrc
[vagrant@localhost ~]$ source $HOME/.bashrc
[vagrant@localhost ~]$ go env | grep GOPATH
GOPATH="/home/vagrant/work"
[vagrant@localhost ~]$ go env | grep GOROOT
GOROOT="/usr/lib/golang"
[vagrant@localhost ~]$ sudo dnf install git -y
[vagrant@localhost ~]$ cd $GOPATH
[vagrant@localhost work]$ mkdir {src,pkg,bin}
[vagrant@localhost work]$ cd src/
[vagrant@localhost src]$ git clone https://github.com/jonmorehouse/terraform-provisioner-ansible
[vagrant@localhost src]$ cd terraform-provisioner-ansible/
[vagrant@localhost terraform-provisioner-ansible]$ go get -v
[vagrant@localhost terraform-provisioner-ansible]$ go build after build you'll find binary in $GOPATH/bin/ |
Thanks @kostyrevaa |
Tried your method a few minutes ago , but it errors out maybe something connected with the Go version ?
Let me know how i can build this for myself , are there any official requirements list or supported versions of Go or anything else ? Thanks in advance ! |
@bbozhev according to this Go version 1.8+ is required to build terraform sources.
Update: it seems that rawhide box does not boot up. |
@akostyrev thanks for the hint , but now i have the following issue : terraform-provisioner-ansible./main.go:9: cannot use ResourceProvisioner literal (type *ResourceProvisioner) as type terraform.ResourceProvisioner in return argument: terraform-provisioner-ansible./main.go:9: cannot use ResourceProvisioner literal (type *ResourceProvisioner) as type terraform.ResourceProvisioner in return argument: I have the same error on fedora with :
Does anything come to your mind ? |
@bbozhev no idea |
Am I the only one with this error?
The text was updated successfully, but these errors were encountered: