coderbeans1 / terraform-provider-hitachi

1 stars 0 forks source link

ambiguous import #6

Open 7331NeMiSiS opened 1 year ago

7331NeMiSiS commented 1 year ago
[root@terraform terraform-provider-coolbeans]# ls
docker_compose  docs_back   examples  go.sum     main.go   oryxBuildBinary  terraform-registry-manifest.json  website_back
docs            docs_back1  go.mod    hashicups  Makefile  README.md        tools
[root@terraform terraform-provider-coolbeans]# go build -o terraform-provider-coolbeans
go: downloading github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1
go: downloading github.com/hashicorp-demoapp/hashicups-client-go v0.1.0
go: extracting github.com/hashicorp-demoapp/hashicups-client-go v0.1.0
go: extracting github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1
go: downloading github.com/hashicorp/terraform-plugin-go v0.14.3
go: downloading github.com/hashicorp/go-plugin v1.4.9
go: downloading github.com/hashicorp/go-hclog v1.5.0
go: downloading github.com/mitchellh/go-testing-interface v1.14.1
go: downloading github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: extracting github.com/mitchellh/go-testing-interface v1.14.1
go: downloading github.com/mitchellh/copystructure v1.2.0
go: extracting github.com/hashicorp/go-multierror v1.1.1
go: extracting github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/hashicorp/go-uuid v1.0.3
go: extracting github.com/hashicorp/go-plugin v1.4.9
go: extracting github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
go: extracting github.com/hashicorp/terraform-plugin-go v0.14.3
go: extracting github.com/hashicorp/go-hclog v1.5.0
go: downloading github.com/google/go-cmp v0.5.9
go: downloading google.golang.org/grpc v1.55.0
go: downloading github.com/oklog/run v1.1.0
go: downloading github.com/hashicorp/terraform-registry-address v0.1.0
go: downloading google.golang.org/protobuf v1.30.0
go: extracting github.com/hashicorp/go-uuid v1.0.3
go: downloading github.com/hashicorp/hcl/v2 v2.16.2
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading github.com/golang/protobuf v1.5.3
go: downloading github.com/hashicorp/yamux v0.1.1
go: extracting github.com/hashicorp/terraform-registry-address v0.1.0
go: extracting github.com/google/go-cmp v0.5.9
go: extracting github.com/hashicorp/yamux v0.1.1
go: extracting github.com/oklog/run v1.1.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: extracting github.com/golang/protobuf v1.5.3
go: extracting github.com/hashicorp/errwrap v1.1.0
go: downloading golang.org/x/net v0.10.0
go: extracting github.com/mitchellh/mapstructure v1.5.0
go: extracting github.com/hashicorp/hcl/v2 v2.16.2
go: downloading github.com/vmihailenco/msgpack v4.0.4+incompatible
go: extracting github.com/vmihailenco/msgpack v4.0.4+incompatible
go: downloading github.com/vmihailenco/msgpack/v4 v4.3.12
go: extracting github.com/vmihailenco/msgpack/v4 v4.3.12
go: downloading github.com/zclconf/go-cty v1.13.2
go: downloading golang.org/x/text v0.9.0
go: extracting google.golang.org/grpc v1.55.0
go: extracting google.golang.org/protobuf v1.30.0
go: extracting golang.org/x/net v0.10.0
go: extracting github.com/zclconf/go-cty v1.13.2
go: downloading github.com/fatih/color v1.15.0
go: downloading github.com/mitchellh/go-wordwrap v1.0.1
go: extracting github.com/mitchellh/go-wordwrap v1.0.1
go: downloading github.com/hashicorp/terraform-plugin-log v0.8.0
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: extracting github.com/fatih/color v1.15.0
go: downloading github.com/agext/levenshtein v1.2.3
go: downloading github.com/hashicorp/logutils v1.0.0
go: downloading github.com/mattn/go-isatty v0.0.19
go: downloading google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4
go: extracting github.com/mitchellh/reflectwalk v1.0.2
go: downloading github.com/hashicorp/go-version v1.6.0
go: downloading github.com/apparentlymart/go-textseg v1.0.0
go: extracting github.com/hashicorp/terraform-plugin-log v0.8.0
go: extracting github.com/hashicorp/logutils v1.0.0
go: downloading github.com/vmihailenco/tagparser v0.1.1
go: downloading github.com/mattn/go-colorable v0.1.13
go: extracting github.com/agext/levenshtein v1.2.3
go: downloading github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
go: extracting github.com/mattn/go-isatty v0.0.19
go: downloading golang.org/x/sys v0.8.0
go: extracting github.com/hashicorp/go-version v1.6.0
go: extracting github.com/vmihailenco/tagparser v0.1.1
go: extracting github.com/apparentlymart/go-textseg v1.0.0
go: downloading github.com/apparentlymart/go-textseg/v13 v13.0.0
go: extracting github.com/mattn/go-colorable v0.1.13
go: extracting github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
go: extracting github.com/apparentlymart/go-textseg/v13 v13.0.0
go: extracting golang.org/x/sys v0.8.0
go: extracting golang.org/x/text v0.9.0
go: extracting google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234015-3fc162c6f38a
go: extracting google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234015-3fc162c6f38a
go: finding github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1
go: finding github.com/hashicorp/go-hclog v1.5.0
go: finding github.com/hashicorp/go-plugin v1.4.9
go: finding github.com/hashicorp/terraform-plugin-go v0.14.3
go: finding github.com/hashicorp-demoapp/hashicups-client-go v0.1.0
go: finding github.com/google/go-cmp v0.5.9
go: finding github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
go: finding github.com/mitchellh/go-testing-interface v1.14.1
go: finding golang.org/x/text v0.9.0
go: finding github.com/fatih/color v1.15.0
go: finding github.com/mattn/go-isatty v0.0.19
go: finding github.com/hashicorp/go-multierror v1.1.1
go: finding github.com/vmihailenco/msgpack v4.0.4+incompatible
go: finding github.com/mattn/go-colorable v0.1.13
go: finding github.com/hashicorp/errwrap v1.1.0
go: finding golang.org/x/sys v0.8.0
go: finding github.com/vmihailenco/msgpack/v4 v4.3.12
go: finding github.com/vmihailenco/tagparser v0.1.1
go: finding github.com/hashicorp/terraform-plugin-log v0.8.0
go: finding github.com/hashicorp/go-uuid v1.0.3
go: finding google.golang.org/grpc v1.55.0
go: finding github.com/hashicorp/logutils v1.0.0
go: finding github.com/hashicorp/terraform-registry-address v0.1.0
go: finding google.golang.org/protobuf v1.30.0
go: finding github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
go: finding github.com/golang/protobuf v1.5.3
go: finding github.com/hashicorp/go-version v1.6.0
go: finding golang.org/x/net v0.10.0
go: finding github.com/mitchellh/copystructure v1.2.0
go: finding github.com/hashicorp/hcl/v2 v2.16.2
go: finding github.com/mitchellh/mapstructure v1.5.0
go: finding github.com/hashicorp/yamux v0.1.1
go: finding github.com/agext/levenshtein v1.2.3
go: finding github.com/mitchellh/reflectwalk v1.0.2
go: finding github.com/oklog/run v1.1.0
go: finding github.com/apparentlymart/go-textseg/v13 v13.0.0
go: finding github.com/mitchellh/go-wordwrap v1.0.1
go: finding github.com/zclconf/go-cty v1.13.2
build terraform-provider-coolbeans: cannot load google.golang.org/genproto/googleapis/rpc/status: ambiguous import: found google.golang.org/genproto/googleapis/rpc/status in multiple modules:
        google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 (/root/go/pkg/mod/google.golang.org/genproto@v0.0.0-20230306155012-7f2fa6fef1f4/googleapis/rpc/status)
        google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234015-3fc162c6f38a (/root/go/pkg/mod/google.golang.org/genproto/googleapis/rpc@v0.0.0-20230525234015-3fc162c6f38a/status)

Seem to get ambiguous import when building.
liggitt commented 1 year ago

Updating to a version at or above v0.0.0-20230526161137-0005af68ea54 will resolve this error (see https://github.com/googleapis/go-genproto/issues/1015 for details)

The following should resolve this:

google.golang.org/genproto/googleapis/rpc@latest
go mod tidy