Skip to content
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

Too many errors #61

Closed
johnjelinek opened this issue Feb 18, 2020 · 4 comments
Closed

Too many errors #61

johnjelinek opened this issue Feb 18, 2020 · 4 comments

Comments

@johnjelinek
Copy link

> go get github.com/infobloxopen/terraform-provider-infoblox

go: finding github.com/sirupsen/logrus v1.2.0
go: finding golang.org/x/net v0.0.0-20191009170851-d66e71096ffb
go: finding github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590
go: finding github.com/hashicorp/go-hclog v0.0.0-20181001195459-61d530d6c27f
go: finding github.com/hashicorp/terraform-svchost v0.0.0-20191011084731-65d371908596
go: finding github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f
go: finding github.com/vmihailenco/msgpack v4.0.1+incompatible
go: finding github.com/spf13/afero v1.2.1
go: finding cloud.google.com/go v0.45.1
go: finding github.com/bmatcuk/doublestar v1.1.5
go: finding github.com/aws/aws-sdk-go v1.25.3
go: finding github.com/mattn/go-isatty v0.0.5
go: finding github.com/hashicorp/go-plugin v1.0.1-0.20190610192547-a1bc61569a26
go: finding github.com/posener/complete v1.2.1
go: finding github.com/mattn/go-colorable v0.1.1
go: finding golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa
go: finding google.golang.org/api v0.9.0
go: finding google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55
go: finding go.opencensus.io v0.22.0
go: finding google.golang.org/grpc v1.21.1
# github.com/infobloxopen/terraform-provider-infoblox/infoblox
../../.asdf/installs/golang/1.13.4/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceARecord.go:98:24: objMgr.CreateARecord undefined (type *ibclient.ObjectManager has no field or method CreateARecord)
../../.asdf/installs/golang/1.13.4/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceARecord.go:119:18: objMgr.GetARecordByRef undefined (type *ibclient.ObjectManager has no field or method GetARecordByRef)
../../.asdf/installs/golang/1.13.4/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceARecord.go:142:18: objMgr.DeleteARecord undefined (type *ibclient.ObjectManager has no field or method DeleteARecord)
../../.asdf/installs/golang/1.13.4/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceCNAMERecord.go:89:28: objMgr.CreateCNAMERecord undefined (type *ibclient.ObjectManager has no field or method CreateCNAMERecord)
../../.asdf/installs/golang/1.13.4/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceCNAMERecord.go:110:18: objMgr.GetCNAMERecordByRef undefined (type *ibclient.ObjectManager has no field or method GetCNAMERecordByRef)
../../.asdf/installs/golang/1.13.4/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceCNAMERecord.go:133:18: objMgr.DeleteCNAMERecord undefined (type *ibclient.ObjectManager has no field or method DeleteCNAMERecord)
../../.asdf/installs/golang/1.13.4/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceIPAllocation.go:117:32: objMgr.CreateHostRecord undefined (type *ibclient.ObjectManager has no field or method CreateHostRecord)
../../.asdf/installs/golang/1.13.4/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceIPAllocation.go:124:44: cannot use ea (type ibclient.EA) as type string in argument to objMgr.AllocateIP
../../.asdf/installs/golang/1.13.4/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceIPAllocation.go:148:19: objMgr.GetHostRecordByRef undefined (type *ibclient.ObjectManager has no field or method GetHostRecordByRef)
../../.asdf/installs/golang/1.13.4/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceIPAllocation.go:153:19: objMgr.GetFixedAddressByRef undefined (type *ibclient.ObjectManager has no field or method GetFixedAddressByRef)
../../.asdf/installs/golang/1.13.4/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceIPAllocation.go:153:19: too many errors
@AvRajath
Copy link
Contributor

@johnjelinek We tested this on multiple systems with GO 1.13.4 but did not see this issue anywhere. Please check with your go modules and see if you are getting the same error when you do a go get on another git repo.

@johnjelinek
Copy link
Author

could you release builds for the plugin on linux/darwin/windows? Then I could install and be on my way. I don't get the error on another repo:

> go get -u github.com/mitchellh/gox

go: finding github.com/mitchellh/gox v1.0.1
go: downloading github.com/mitchellh/gox v1.0.1
go: extracting github.com/mitchellh/gox v1.0.1
go: downloading github.com/mitchellh/iochan v1.0.0
go: downloading github.com/hashicorp/go-version v1.0.0
go: extracting github.com/hashicorp/go-version v1.0.0
go: extracting github.com/mitchellh/iochan v1.0.0
go: finding github.com/mitchellh/iochan v1.0.0

and I don't get the error with other terraform providers:

> go get -u github.com/josenk/terraform-provider-esxi

go: finding github.com/josenk/terraform-provider-esxi v1.6.3
go: downloading github.com/josenk/terraform-provider-esxi v1.6.3
go: extracting github.com/josenk/terraform-provider-esxi v1.6.3
go: downloading github.com/hashicorp/terraform v0.12.2
go: downloading github.com/tmc/scp v0.0.0-20170824174625-f7b48647feef
go: downloading golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734
go: extracting github.com/tmc/scp v0.0.0-20170824174625-f7b48647feef
go: downloading github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
go: extracting github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
go: extracting github.com/hashicorp/terraform v0.12.2
go: extracting golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734
go: downloading golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82
go: downloading github.com/zclconf/go-cty v0.0.0-20190516203816-4fecf87372ec
go: downloading google.golang.org/grpc v1.18.0
go: extracting golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82
go: downloading github.com/hashicorp/hcl2 v0.0.0-20190515223218-4b22149b7cef
go: downloading github.com/golang/protobuf v1.3.0
go: extracting github.com/zclconf/go-cty v0.0.0-20190516203816-4fecf87372ec
go: extracting github.com/golang/protobuf v1.3.0
go: extracting github.com/hashicorp/hcl2 v0.0.0-20190515223218-4b22149b7cef
go: extracting google.golang.org/grpc v1.18.0
go: downloading github.com/hashicorp/go-getter v1.3.0
go: downloading github.com/zclconf/go-cty-yaml v0.1.0
go: downloading google.golang.org/appengine v1.4.0
go: extracting github.com/zclconf/go-cty-yaml v0.1.0
go: extracting github.com/hashicorp/go-getter v1.3.0
go: downloading github.com/satori/go.uuid v1.2.0
go: downloading golang.org/x/net v0.0.0-20190502183928-7f726cade0ab
go: extracting github.com/satori/go.uuid v1.2.0
go: downloading github.com/mitchellh/go-homedir v1.0.0
go: downloading github.com/aws/aws-sdk-go v1.19.18
go: downloading github.com/google/go-cmp v0.3.0
go: extracting google.golang.org/appengine v1.4.0
go: extracting github.com/mitchellh/go-homedir v1.0.0
go: downloading google.golang.org/api v0.1.0
go: extracting golang.org/x/net v0.0.0-20190502183928-7f726cade0ab
go: extracting github.com/google/go-cmp v0.3.0
go: downloading google.golang.org/genproto v0.0.0-20190201180003-4b09977fb922
go: downloading cloud.google.com/go v0.36.0
go: extracting github.com/aws/aws-sdk-go v1.19.18
go: extracting cloud.google.com/go v0.36.0
go: downloading github.com/googleapis/gax-go v2.0.0+incompatible
go: extracting github.com/googleapis/gax-go v2.0.0+incompatible
go: downloading github.com/googleapis/gax-go/v2 v2.0.3
go: downloading go.opencensus.io v0.18.0
go: extracting google.golang.org/genproto v0.0.0-20190201180003-4b09977fb922
go: extracting github.com/googleapis/gax-go/v2 v2.0.3
go: extracting go.opencensus.io v0.18.0
go: extracting google.golang.org/api v0.1.0
go: downloading golang.org/x/oauth2 v0.0.0-20190220154721-9b3c75971fc9
go: extracting golang.org/x/oauth2 v0.0.0-20190220154721-9b3c75971fc9
go: finding github.com/hashicorp/hil latest
go: finding golang.org/x/oauth2 latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/net latest
go: finding golang.org/x/sys latest
go: finding github.com/jmespath/go-jmespath latest
go: finding github.com/tmc/scp latest
go: finding google.golang.org/genproto latest
go: finding github.com/hashicorp/hcl2 latest
go: finding github.com/bgentry/go-netrc latest
go: finding github.com/hashicorp/yamux latest
go: finding github.com/kballard/go-shellquote latest
go: finding github.com/satori/go.uuid v1.2.0
go: finding golang.org/x/xerrors latest
go: finding golang.org/x/lint latest
go: finding golang.org/x/exp latest
go: finding github.com/hashicorp/terraform-svchost latest
go: finding golang.org/x/tools latest
go: finding github.com/golang/groupcache latest

@johnjelinek
Copy link
Author

Same issue with go 1.12:

> go get -u github.com/infobloxopen/terraform-provider-infoblox
# github.com/infobloxopen/terraform-provider-infoblox/infoblox
../../.asdf/installs/golang/1.12.17/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceARecord.go:98:24: objMgr.CreateARecord undefined (type *ibclient.ObjectManager has no field or method CreateARecord)
../../.asdf/installs/golang/1.12.17/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceARecord.go:119:18: objMgr.GetARecordByRef undefined (type *ibclient.ObjectManager has no field or method GetARecordByRef)
../../.asdf/installs/golang/1.12.17/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceARecord.go:142:18: objMgr.DeleteARecord undefined (type *ibclient.ObjectManager has no field or method DeleteARecord)
../../.asdf/installs/golang/1.12.17/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceCNAMERecord.go:89:28: objMgr.CreateCNAMERecord undefined (type *ibclient.ObjectManager has no field or method CreateCNAMERecord)
../../.asdf/installs/golang/1.12.17/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceCNAMERecord.go:110:18: objMgr.GetCNAMERecordByRef undefined (type *ibclient.ObjectManager has no field or method GetCNAMERecordByRef)
../../.asdf/installs/golang/1.12.17/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceCNAMERecord.go:133:18: objMgr.DeleteCNAMERecord undefined (type *ibclient.ObjectManager has no field or method DeleteCNAMERecord)
../../.asdf/installs/golang/1.12.17/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceIPAllocation.go:117:32: objMgr.CreateHostRecord undefined (type *ibclient.ObjectManager has no field or method CreateHostRecord)
../../.asdf/installs/golang/1.12.17/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceIPAllocation.go:124:44: cannot use ea (type ibclient.EA) as type string in argument to objMgr.AllocateIP
../../.asdf/installs/golang/1.12.17/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceIPAllocation.go:148:19: objMgr.GetHostRecordByRef undefined (type *ibclient.ObjectManager has no field or method GetHostRecordByRef)
../../.asdf/installs/golang/1.12.17/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceIPAllocation.go:153:19: objMgr.GetFixedAddressByRef undefined (type *ibclient.ObjectManager has no field or method GetFixedAddressByRef)
../../.asdf/installs/golang/1.12.17/packages/pkg/mod/github.com/infobloxopen/terraform-provider-infoblox@v1.0.1/infoblox/resourceIPAllocation.go:153:19: too many errors

@johnjelinek
Copy link
Author

If I target master branch, it works, but by default, go get fetches the latest release (which is returning the errors above).

> go get -u github.com/infobloxopen/terraform-provider-infoblox@master

go: finding github.com/infobloxopen master
go: finding github.com/infobloxopen/terraform-provider-infoblox master
go: finding github.com master
go: downloading github.com/infobloxopen/terraform-provider-infoblox v1.0.2-0.20191202055818-3eea6c8a2509
go: extracting github.com/infobloxopen/terraform-provider-infoblox v1.0.2-0.20191202055818-3eea6c8a2509
go: downloading github.com/hashicorp/terraform v0.12.9
go: downloading github.com/infobloxopen/infoblox-go-client v0.8.1-0.20190830062100-dd50c409ab6d
go: extracting github.com/infobloxopen/infoblox-go-client v0.8.1-0.20190830062100-dd50c409ab6d
go: downloading golang.org/x/net v0.0.0-20190620200207-3b0461eec859
go: extracting github.com/hashicorp/terraform v0.12.9
go: extracting golang.org/x/net v0.0.0-20190620200207-3b0461eec859
go: downloading github.com/zclconf/go-cty v1.0.1-0.20190708163926-19588f92a98f
go: downloading github.com/hashicorp/go-getter v1.4.0
go: downloading github.com/hashicorp/hcl2 v0.0.0-20190821123243-0c888d1241f6
go: extracting github.com/hashicorp/go-getter v1.4.0
go: extracting github.com/zclconf/go-cty v1.0.1-0.20190708163926-19588f92a98f
go: downloading github.com/aws/aws-sdk-go v1.22.0
go: extracting github.com/hashicorp/hcl2 v0.0.0-20190821123243-0c888d1241f6
go: extracting github.com/aws/aws-sdk-go v1.22.0
go: finding github.com/hashicorp/hil latest
go: finding github.com/hashicorp/hcl2 latest
go: finding github.com/bgentry/go-netrc latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/net latest
go: finding github.com/infobloxopen/infoblox-go-client v0.8.1-0.20190830062100-dd50c409ab6d
go: finding google.golang.org/genproto latest
go: finding golang.org/x/sys latest
go: finding golang.org/x/oauth2 latest
go: finding github.com/hashicorp/yamux latest
go: finding github.com/jmespath/go-jmespath latest
go: finding github.com/golang/groupcache latest
go: finding golang.org/x/xerrors latest
go: finding golang.org/x/lint latest
go: finding golang.org/x/exp latest
go: finding golang.org/x/tools latest
go: finding github.com/hashicorp/terraform-svchost latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants