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

[Question] Install kratos cli with a specific version #1557

Closed
szeseong opened this issue Oct 15, 2021 · 6 comments
Closed

[Question] Install kratos cli with a specific version #1557

szeseong opened this issue Oct 15, 2021 · 6 comments
Labels
question Further information is requested

Comments

@szeseong
Copy link

Is it possible to install kratos cli with a specific version like v2.0.5 instead of latest?

When I ran below line:
go install github.com/go-kratos/kratos/cmd/kratos/v2@v2.0.5

I got this
go install: github.com/go-kratos/kratos/cmd/kratos/v2@v2.0.5: github.com/go-kratos/kratos@v2.0.5: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2

@szeseong szeseong added the question Further information is requested label Oct 15, 2021
@szeseong szeseong changed the title [Question] [Question] Install kratos cli with a specific version Oct 15, 2021
@daemon365
Copy link
Member

Because kratos tool have no version, due to the problem of gomod. Please use go install github.com/go-kratos/kratos/cmd/kratos/v2@latest

@szeseong
Copy link
Author

As I'm not ready to use kratos v2.1.0. I'm using go install github.com/go-kratos/kratos/cmd/kratos/v2@f3e75bffca735a5c1b5ae388814aed0e37388f09 which depends on kratos 2.0.3.

@daemon365
Copy link
Member

ok. But kratos tool just a command line tool, even if you use Kratos 2.0.3, it is recommended to use the latest version of kratos tool.

@szeseong
Copy link
Author

My project is still based on kratos v2.0.5. When I run go install github.com/go-kratos/kratos/cmd/kratos/v2@latest the go.mod in my project will be upgraded to kratos v2.1.0. Is there a way to prevent go install modify my go.mod?

@daemon365
Copy link
Member

you can use kratos new test -b v2.0.5

@qcu266
Copy link

qcu266 commented Jul 6, 2023

should tag following, when version release:

  • cmd/kratos/v2.6.3
  • cmd/protoc-gen-go-errors/v2.6.3
  • cmd/protoc-gen-go-http/v2.6.3

@haiyux

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

No branches or pull requests

3 participants