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

ambiguous import #6

Open
7331NeMiSiS opened this issue Jul 24, 2023 · 1 comment
Open

ambiguous import #6

7331NeMiSiS opened this issue Jul 24, 2023 · 1 comment

Comments

@7331NeMiSiS
Copy link

[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/[email protected]/googleapis/rpc/status)
        google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234015-3fc162c6f38a (/root/go/pkg/mod/google.golang.org/genproto/googleapis/[email protected]/status)


Seem to get ambiguous import when building.

@liggitt
Copy link

liggitt commented Jul 24, 2023

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

The following should resolve this:

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

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