Closed slavditore closed 4 years ago
Try this order:
go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox
go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provisioner-proxmox
# copy into terraform plugins diectory
cp ~/go/bin/* ~/.terraform.d/plugins
Try this order:
go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provisioner-proxmox # copy into terraform plugins diectory cp ~/go/bin/* ~/.terraform.d/plugins
I've tried this, but I'm still having same error:
$ go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox
github.com/Telmate/terraform-provider-proxmox (download)
github.com/Telmate/proxmox-api-go (download)
github.com/hashicorp/terraform (download)
github.com/hashicorp/terraform/helper/plugin
# github.com/hashicorp/terraform/helper/plugin
../../../go/src/github.com/hashicorp/terraform/helper/plugin/grpc_provisioner.go:173:6: b.Cap undefined (type strings.Builder has no field or method Cap)
$ go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provisioner-proxmox
github.com/hashicorp/terraform/helper/plugin
# github.com/hashicorp/terraform/helper/plugin
../../../go/src/github.com/hashicorp/terraform/helper/plugin/grpc_provisioner.go:173:6: b.Cap undefined (type strings.Builder has no field or method Cap)
I made a Test-VM and verified your problem.
# Make sure everything is up to date
apt update && apt upgrade -y
# install golang and git
apt install golang git -y
go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox
go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provisioner-proxmox
@slavditore I faced the same issue when i've tried with the latest version of go (1.13.3). You need to use version 1.13
-> https://golang.org/dl/#go1.13
@slavditore You can install go version 1.13.4
by doing this:
# download
wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
# install
sudo tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> $HOME/.profile
source $HOME/.profile
# cleanup
rm go1.13.4.linux-amd64.tar.gz
# test
go version
@cospeedster thank you! I've tried your guide and I'm installed it successfully.
@slavditore @cospeedster i am still stuck on installation. There must be some issue with GOLANG path
How can I fix this issues on Ubuntu 18.04 and Terraform 0.12?