Telmate / terraform-provider-proxmox

Terraform provider plugin for proxmox
MIT License
2.13k stars 512 forks source link

Troubles with install #116

Closed slavditore closed 4 years ago

slavditore commented 4 years ago
$ go install github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox

can't load package: package github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox: cannot find package "github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox" in any of:
        /usr/lib/go-1.10/src/github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox (from $GOROOT)
        /home/user/go/src/github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox (from $GOPATH)
$ 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)

How can I fix this issues on Ubuntu 18.04 and Terraform 0.12?

cospeedster commented 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
slavditore commented 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

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)
cospeedster commented 4 years ago

Verified on Ubuntu 18.04.02

I made a Test-VM and verified your problem.

Make sure everything is prepared

# Make sure everything is up to date
apt update && apt upgrade -y
# install golang and git
apt install golang git -y

Install Provider

go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox
Output ``````bash github.com/Telmate/terraform-provider-proxmox (download) github.com/Telmate/proxmox-api-go (download) github.com/hashicorp/terraform (download) github.com/hashicorp/terraform/communicator/remote github.com/Telmate/proxmox-api-go/proxmox github.com/hashicorp/terraform/vendor/github.com/hashicorp/errwrap github.com/hashicorp/terraform/communicator/shared github.com/hashicorp/terraform/vendor/github.com/agext/levenshtein github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-multierror github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-uuid github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-version github.com/hashicorp/terraform/vendor/github.com/apparentlymart/go-textseg/textseg github.com/hashicorp/terraform/vendor/github.com/mitchellh/go-wordwrap github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/set github.com/hashicorp/terraform/vendor/golang.org/x/text/transform github.com/hashicorp/terraform/vendor/golang.org/x/text/unicode/norm github.com/hashicorp/terraform/vendor/github.com/blang/semver github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/strconv github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/token github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/ast github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/scanner github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/parser github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/json/token github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/json/scanner github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/json/parser github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl github.com/hashicorp/terraform/vendor/github.com/google/go-cmp/cmp/internal/diff github.com/hashicorp/terraform/vendor/github.com/google/go-cmp/cmp/internal/flags github.com/hashicorp/terraform/vendor/github.com/google/go-cmp/cmp/internal/function github.com/hashicorp/terraform/vendor/github.com/google/go-cmp/cmp/internal/value github.com/hashicorp/terraform/vendor/github.com/google/go-cmp/cmp github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/convert github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/function github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/v2 github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/gocty github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/v2/hcldec github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/json github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/function/stdlib github.com/hashicorp/terraform/tfdiags github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/ast github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/v2/hclsyntax github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/scanner github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/parser github.com/hashicorp/terraform/vendor/github.com/mitchellh/mapstructure github.com/hashicorp/terraform/vendor/github.com/mitchellh/reflectwalk github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil github.com/hashicorp/terraform/helper/didyoumean github.com/hashicorp/terraform/helper/hilmapstructure github.com/hashicorp/terraform/vendor/golang.org/x/net/internal/timeseries github.com/hashicorp/terraform/addrs github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/v2/hclwrite github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/v2/json github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/v2/gohcl github.com/hashicorp/terraform/configs/configschema github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/v2/hclparse github.com/hashicorp/terraform/vendor/golang.org/x/net/trace github.com/hashicorp/terraform/configs/hcl2shim github.com/hashicorp/terraform/vendor/google.golang.org/grpc/grpclog github.com/hashicorp/terraform/vendor/github.com/golang/protobuf/proto github.com/hashicorp/terraform/vendor/google.golang.org/grpc/connectivity github.com/hashicorp/terraform/vendor/google.golang.org/grpc/credentials/internal github.com/hashicorp/terraform/vendor/google.golang.org/grpc/internal github.com/hashicorp/terraform/vendor/google.golang.org/grpc/metadata github.com/hashicorp/terraform/vendor/google.golang.org/grpc/resolver github.com/hashicorp/terraform/vendor/google.golang.org/grpc/internal/grpcrand github.com/hashicorp/terraform/vendor/google.golang.org/grpc/codes github.com/hashicorp/terraform/vendor/google.golang.org/grpc/encoding github.com/hashicorp/terraform/vendor/google.golang.org/grpc/internal/backoff github.com/hashicorp/terraform/vendor/google.golang.org/grpc/internal/balancerload github.com/hashicorp/terraform/vendor/golang.org/x/sys/unix github.com/hashicorp/terraform/vendor/google.golang.org/grpc/internal/envconfig github.com/hashicorp/terraform/vendor/google.golang.org/grpc/internal/grpcsync github.com/hashicorp/terraform/vendor/golang.org/x/text/unicode/bidi github.com/hashicorp/terraform/vendor/golang.org/x/text/secure/bidirule github.com/hashicorp/terraform/vendor/google.golang.org/grpc/credentials github.com/hashicorp/terraform/vendor/google.golang.org/grpc/encoding/proto github.com/hashicorp/terraform/vendor/github.com/golang/protobuf/ptypes/any github.com/hashicorp/terraform/vendor/github.com/golang/protobuf/ptypes/duration github.com/hashicorp/terraform/vendor/github.com/golang/protobuf/ptypes/timestamp github.com/hashicorp/terraform/vendor/google.golang.org/grpc/balancer github.com/hashicorp/terraform/vendor/github.com/golang/protobuf/ptypes github.com/hashicorp/terraform/vendor/google.golang.org/grpc/balancer/base github.com/hashicorp/terraform/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1 github.com/hashicorp/terraform/vendor/google.golang.org/grpc/balancer/roundrobin github.com/hashicorp/terraform/vendor/google.golang.org/genproto/googleapis/rpc/status github.com/hashicorp/terraform/vendor/google.golang.org/grpc/status github.com/hashicorp/terraform/vendor/google.golang.org/grpc/internal/channelz github.com/hashicorp/terraform/vendor/google.golang.org/grpc/internal/binarylog github.com/hashicorp/terraform/vendor/golang.org/x/net/idna github.com/hashicorp/terraform/vendor/golang.org/x/net/http2/hpack github.com/hashicorp/terraform/vendor/google.golang.org/grpc/internal/syscall github.com/hashicorp/terraform/vendor/golang.org/x/net/http/httpguts github.com/hashicorp/terraform/vendor/google.golang.org/grpc/keepalive github.com/hashicorp/terraform/vendor/google.golang.org/grpc/peer github.com/hashicorp/terraform/vendor/golang.org/x/net/http2 github.com/hashicorp/terraform/vendor/google.golang.org/grpc/stats github.com/hashicorp/terraform/vendor/google.golang.org/grpc/tap github.com/hashicorp/terraform/vendor/google.golang.org/grpc/naming github.com/hashicorp/terraform/vendor/google.golang.org/grpc/resolver/dns github.com/hashicorp/terraform/vendor/google.golang.org/grpc/resolver/passthrough github.com/hashicorp/terraform/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor github.com/hashicorp/terraform/vendor/google.golang.org/genproto/googleapis/api/annotations github.com/hashicorp/terraform/vendor/google.golang.org/genproto/googleapis/type/expr github.com/hashicorp/terraform/vendor/google.golang.org/api/googleapi/internal/uritemplates github.com/hashicorp/terraform/vendor/google.golang.org/api/googleapi github.com/hashicorp/terraform/vendor/cloud.google.com/go/internal/optional github.com/hashicorp/terraform/vendor/github.com/hashicorp/golang-lru/simplelru github.com/hashicorp/terraform/vendor/go.opencensus.io github.com/hashicorp/terraform/vendor/go.opencensus.io/internal github.com/hashicorp/terraform/vendor/go.opencensus.io/trace/internal github.com/hashicorp/terraform/vendor/go.opencensus.io/trace/tracestate github.com/hashicorp/terraform/vendor/go.opencensus.io/trace github.com/hashicorp/terraform/vendor/google.golang.org/grpc/internal/transport github.com/hashicorp/terraform/vendor/google.golang.org/genproto/googleapis/rpc/code github.com/hashicorp/terraform/vendor/cloud.google.com/go/internal/trace github.com/hashicorp/terraform/vendor/cloud.google.com/go/internal/version github.com/hashicorp/terraform/vendor/google.golang.org/api/iterator github.com/hashicorp/terraform/vendor/golang.org/x/net/context/ctxhttp github.com/hashicorp/terraform/vendor/golang.org/x/oauth2/internal github.com/hashicorp/terraform/vendor/golang.org/x/oauth2 github.com/hashicorp/terraform/vendor/cloud.google.com/go/compute/metadata github.com/hashicorp/terraform/vendor/google.golang.org/grpc github.com/hashicorp/terraform/vendor/golang.org/x/oauth2/jws github.com/hashicorp/terraform/vendor/golang.org/x/oauth2/jwt github.com/hashicorp/terraform/vendor/golang.org/x/oauth2/google github.com/hashicorp/terraform/vendor/go.opencensus.io/trace/propagation github.com/hashicorp/terraform/vendor/go.opencensus.io/plugin/ochttp/propagation/b3 github.com/hashicorp/terraform/vendor/go.opencensus.io/resource github.com/hashicorp/terraform/vendor/go.opencensus.io/metric/metricdata github.com/hashicorp/terraform/vendor/go.opencensus.io/tag github.com/hashicorp/terraform/vendor/go.opencensus.io/stats/internal github.com/hashicorp/terraform/vendor/go.opencensus.io/stats github.com/hashicorp/terraform/vendor/go.opencensus.io/internal/tagencoding github.com/hashicorp/terraform/vendor/go.opencensus.io/metric/metricproducer github.com/hashicorp/terraform/vendor/go.opencensus.io/stats/view github.com/hashicorp/terraform/vendor/go.opencensus.io/plugin/ochttp github.com/hashicorp/terraform/vendor/github.com/googleapis/gax-go/v2 github.com/hashicorp/terraform/vendor/google.golang.org/genproto/googleapis/iam/v1 github.com/hashicorp/terraform/vendor/cloud.google.com/go/iam github.com/hashicorp/terraform/vendor/cloud.google.com/go/internal github.com/hashicorp/terraform/vendor/google.golang.org/api/internal github.com/hashicorp/terraform/vendor/google.golang.org/api/option github.com/hashicorp/terraform/vendor/google.golang.org/api/gensupport github.com/hashicorp/terraform/vendor/google.golang.org/api/googleapi/transport github.com/hashicorp/terraform/vendor/google.golang.org/api/transport/http/internal/propagation github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/awserr github.com/hashicorp/terraform/vendor/google.golang.org/api/transport/http github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/internal/ini github.com/hashicorp/terraform/vendor/google.golang.org/api/storage/v1 github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/credentials github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/endpoints github.com/hashicorp/terraform/vendor/cloud.google.com/go/storage github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/internal/sdkio github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/client/metadata github.com/hashicorp/terraform/vendor/github.com/jmespath/go-jmespath github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/awsutil github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/internal/sdkrand github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/internal/sdkuri github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/internal/sdkmath github.com/hashicorp/terraform/vendor/github.com/bgentry/go-netrc/netrc github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-cleanhttp github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-getter/helper/url github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/request github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-safetemp github.com/hashicorp/terraform/vendor/github.com/mitchellh/go-homedir github.com/hashicorp/terraform/vendor/github.com/mitchellh/go-testing-interface github.com/hashicorp/terraform/vendor/github.com/ulikunitz/xz/internal/xlog github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/client github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/corehandlers github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/rest github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/signer/v4 github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/csm github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/query github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/service/sts github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/service/sts/stsiface github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/defaults github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/credentials/stscreds github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/internal/s3err github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/aws/session github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/private/protocol/restxml github.com/hashicorp/terraform/vendor/github.com/aws/aws-sdk-go/service/s3 github.com/hashicorp/terraform/vendor/github.com/ulikunitz/xz/internal/hash github.com/hashicorp/terraform/vendor/github.com/ulikunitz/xz/lzma github.com/hashicorp/terraform/vendor/github.com/ulikunitz/xz github.com/hashicorp/terraform/vendor/github.com/hashicorp/terraform-svchost github.com/hashicorp/terraform/vendor/github.com/hashicorp/terraform-svchost/auth github.com/hashicorp/terraform/vendor/github.com/hashicorp/terraform-svchost/disco github.com/hashicorp/terraform/version github.com/hashicorp/terraform/httpclient github.com/hashicorp/terraform/registry/regsrc github.com/hashicorp/terraform/registry/response github.com/hashicorp/terraform/registry github.com/hashicorp/terraform/vendor/github.com/armon/go-radix github.com/hashicorp/terraform/vendor/github.com/bgentry/speakeasy github.com/hashicorp/terraform/vendor/github.com/mattn/go-isatty github.com/hashicorp/terraform/vendor/github.com/mattn/go-colorable github.com/hashicorp/terraform/vendor/github.com/fatih/color github.com/hashicorp/terraform/vendor/github.com/posener/complete/cmd/install github.com/hashicorp/terraform/vendor/github.com/posener/complete/cmd github.com/hashicorp/terraform/vendor/github.com/posener/complete/match github.com/hashicorp/terraform/vendor/github.com/posener/complete github.com/hashicorp/terraform/vendor/github.com/mitchellh/cli github.com/hashicorp/terraform/vendor/golang.org/x/crypto/openpgp/errors github.com/hashicorp/terraform/vendor/golang.org/x/crypto/openpgp/armor github.com/hashicorp/terraform/vendor/golang.org/x/crypto/cast5 github.com/hashicorp/terraform/vendor/golang.org/x/crypto/openpgp/elgamal github.com/hashicorp/terraform/vendor/golang.org/x/crypto/openpgp/s2k github.com/hashicorp/terraform/vendor/golang.org/x/crypto/openpgp/packet github.com/hashicorp/terraform/vendor/golang.org/x/crypto/openpgp github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-getter github.com/hashicorp/terraform/vendor/github.com/mitchellh/copystructure github.com/hashicorp/terraform/vendor/github.com/mitchellh/hashstructure github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/v2/ext/typeexpr github.com/hashicorp/terraform/vendor/github.com/spf13/afero/mem github.com/hashicorp/terraform/vendor/github.com/spf13/afero github.com/hashicorp/terraform/plugin/discovery github.com/hashicorp/terraform/configs github.com/hashicorp/terraform/config github.com/hashicorp/terraform/dag github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/v2/ext/dynblock github.com/hashicorp/terraform/vendor/github.com/apparentlymart/go-cidr/cidr github.com/hashicorp/terraform/vendor/github.com/bmatcuk/doublestar github.com/hashicorp/terraform/lang/blocktoattr github.com/hashicorp/terraform/vendor/github.com/google/uuid github.com/hashicorp/terraform/vendor/golang.org/x/crypto/blowfish github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty-yaml github.com/hashicorp/terraform/vendor/golang.org/x/crypto/bcrypt github.com/hashicorp/terraform/lang/funcs github.com/hashicorp/terraform/moduledeps github.com/hashicorp/terraform/lang github.com/hashicorp/terraform/states github.com/hashicorp/terraform/vendor/github.com/vmihailenco/msgpack/codes github.com/hashicorp/terraform/vendor/github.com/vmihailenco/msgpack github.com/hashicorp/terraform/plans/objchange github.com/hashicorp/terraform/providers github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/msgpack github.com/hashicorp/terraform/provisioners github.com/hashicorp/terraform/plans github.com/hashicorp/terraform/states/statefile github.com/hashicorp/terraform/vendor/golang.org/x/crypto/ed25519/internal/edwards25519 github.com/hashicorp/terraform/vendor/golang.org/x/crypto/ed25519 github.com/hashicorp/terraform/vendor/golang.org/x/crypto/curve25519 github.com/hashicorp/terraform/terraform github.com/hashicorp/terraform/vendor/golang.org/x/crypto/internal/subtle github.com/hashicorp/terraform/vendor/golang.org/x/crypto/internal/chacha20 github.com/hashicorp/terraform/vendor/golang.org/x/crypto/poly1305 github.com/hashicorp/terraform/vendor/golang.org/x/crypto/ssh github.com/hashicorp/terraform/vendor/golang.org/x/crypto/ssh/agent github.com/hashicorp/terraform/vendor/github.com/xanzy/ssh-agent github.com/hashicorp/terraform/vendor/golang.org/x/crypto/ssh/knownhosts github.com/hashicorp/terraform/vendor/golang.org/x/crypto/md4 github.com/hashicorp/terraform/vendor/github.com/Azure/go-ntlmssp github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/parser/pathexpr github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/tree github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/xconst github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/internal/execxp/findutil github.com/hashicorp/terraform/vendor/golang.org/x/text/internal/tag github.com/hashicorp/terraform/vendor/golang.org/x/text/internal/language github.com/hashicorp/terraform/vendor/golang.org/x/text/internal/language/compact github.com/hashicorp/terraform/vendor/golang.org/x/text/language github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/internal/execxp/intfns github.com/hashicorp/terraform/communicator/ssh github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/internal/xsort github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/lexer github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/parser github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/internal/execxp github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/tree/xmltree/xmlbuilder github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/tree/xmltree/xmlnode github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/tree/xmltree/xmlele github.com/hashicorp/terraform/vendor/golang.org/x/net/html/atom github.com/hashicorp/terraform/vendor/golang.org/x/net/html github.com/hashicorp/terraform/vendor/golang.org/x/text/encoding/internal/identifier github.com/hashicorp/terraform/vendor/golang.org/x/text/encoding github.com/hashicorp/terraform/vendor/golang.org/x/text/encoding/internal github.com/hashicorp/terraform/vendor/golang.org/x/text/encoding/charmap github.com/hashicorp/terraform/vendor/golang.org/x/text/encoding/japanese github.com/hashicorp/terraform/vendor/golang.org/x/text/encoding/korean github.com/hashicorp/terraform/vendor/golang.org/x/text/encoding/simplifiedchinese github.com/hashicorp/terraform/vendor/golang.org/x/text/encoding/traditionalchinese github.com/hashicorp/terraform/vendor/golang.org/x/text/internal/utf8internal github.com/hashicorp/terraform/vendor/golang.org/x/text/runes github.com/hashicorp/terraform/vendor/github.com/masterzen/simplexml/dom github.com/hashicorp/terraform/vendor/github.com/masterzen/winrm/soap github.com/hashicorp/terraform/vendor/golang.org/x/text/encoding/unicode github.com/hashicorp/terraform/vendor/golang.org/x/text/encoding/htmlindex github.com/hashicorp/terraform/vendor/github.com/nu7hatch/gouuid github.com/hashicorp/terraform/vendor/github.com/dylanmei/iso8601 github.com/hashicorp/terraform/vendor/golang.org/x/net/html/charset github.com/hashicorp/terraform/helper/hashcode github.com/hashicorp/terraform/helper/schema github.com/hashicorp/terraform/vendor/github.com/ChrisTrenkamp/goxpath/tree/xmltree github.com/hashicorp/terraform/vendor/github.com/masterzen/winrm github.com/hashicorp/terraform/vendor/github.com/packer-community/winrmcp/winrmcp github.com/hashicorp/terraform/communicator/winrm github.com/hashicorp/terraform/communicator github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-hclog github.com/hashicorp/terraform/vendor/golang.org/x/net/context github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-plugin/internal/plugin github.com/Telmate/terraform-provider-proxmox/proxmox github.com/hashicorp/terraform/vendor/github.com/hashicorp/yamux github.com/hashicorp/terraform/vendor/github.com/oklog/run github.com/hashicorp/terraform/vendor/google.golang.org/grpc/health/grpc_health_v1 github.com/hashicorp/terraform/internal/tfplugin5 github.com/hashicorp/terraform/vendor/google.golang.org/grpc/health github.com/hashicorp/terraform/vendor/github.com/hashicorp/go-plugin github.com/hashicorp/terraform/plugin/convert 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) ``````

Install Provisioner

go get -v github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provisioner-proxmox
Output ``````bash 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) ``````
M0NsTeRRR commented 4 years ago

@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

cospeedster commented 4 years ago

@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
slavditore commented 4 years ago

@cospeedster thank you! I've tried your guide and I'm installed it successfully.

hamzajaved12 commented 3 years ago

@slavditore @cospeedster i am still stuck on installation. There must be some issue with GOLANG path