Skip to content

[QUESTION] About Go Install Cmd Package Failed With @latest tag #2838

@luowencai

Description

@luowencai

Your question

Document https://go-micro.dev/docs/getting-started.html recormend go install go-micro.dev/v5/cmd/protoc-gen-micro@latest, but failed with follow message

go install go-micro.dev/v5/cmd/protoc-gen-micro@latest
go: go-micro.dev/v5/cmd/protoc-gen-micro@latest: version constraints conflict:
        go-micro.dev/v5/cmd/protoc-gen-micro@v1.18.0: parsing go.mod:
        module declares its path as: github.com/micro/go-micro
                but was required as: go-micro.dev/v5/cmd/protoc-gen-micro

What have you tried?

Try https://github.com/micro/go-micro/tree/master/cmd/protoc-gen-micro recormend go install go-micro.dev/v5/cmd/protoc-gen-micro@v5.10.0, and success.

go install go-micro.dev/v5/cmd/micro@v5.10.0
go: downloading github.com/golang-jwt/jwt/v5 v5.3.0
go: downloading github.com/xlab/treeprint v1.2.0
go: downloading github.com/stretchr/objx v0.5.2
go: downloading github.com/imdario/mergo v0.3.13

Context

My Question is the document was misunderstand. Hope can give some solution and make document less wrong infomation.

Resources you've checked

Helpful links

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions