pseudomuto / protoc-gen-doc

Documentation generator plugin for Google Protocol Buffers
MIT License
2.59k stars 462 forks source link

Ambiguous import error #530

Open rgacraig opened 3 months ago

rgacraig commented 3 months ago

go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc

go: downloading github.com/pseudomuto/protoc-gen-doc v1.5.1 go: downloading google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4 go: downloading github.com/golang/protobuf v1.5.4 go: downloading github.com/pseudomuto/protokit v0.2.1 go: downloading google.golang.org/protobuf v1.33.0 go: downloading github.com/envoyproxy/protoc-gen-validate v1.0.4 go: downloading github.com/google/uuid v1.1.2 go: downloading github.com/huandu/xstrings v1.4.0 go: downloading golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 go: downloading github.com/google/uuid v1.6.0 go: downloading github.com/imdario/mergo v1.0.0 go: downloading golang.org/x/crypto v0.21.0 go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 go: downloading google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 go: downloading github.com/imdario/mergo v0.3.16 github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc imports github.com/pseudomuto/protoc-gen-doc/extensions/google_api_http imports google.golang.org/genproto/googleapis/api/annotations: ambiguous import: found package google.golang.org/genproto/googleapis/api/annotations in multiple modules: google.golang.org/genproto v0.0.0-20210917145530-b395a37504d4 (/home/rcraig/go/pkg/mod/google.golang.org/genproto@v0.0.0-20210917145530-b395a37504d4/googleapis/api/annotations) google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 (/home/rcraig/go/pkg/mod/google.golang.org/genproto/googleapis/api@v0.0.0-20240311173647-c811ad7063a7/annotations)

As per the genproto versioning needs to be updated from v0.0.0-20210917145530-b395a37504d4 to the latest.