fix(cmd/kratos): specified version for upgrade (#1772)

pull/1776/head
Tony Chen 3 years ago committed by GitHub
parent 83fad75c0f
commit 0965bf8e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      cmd/kratos/internal/upgrade/upgrade.go

@ -19,13 +19,12 @@ var CmdUpgrade = &cobra.Command{
// Run upgrade the kratos tools.
func Run(cmd *cobra.Command, args []string) {
err := base.GoInstall(
"github.com/go-kratos/kratos/cmd/kratos/v2",
"github.com/go-kratos/kratos/cmd/protoc-gen-go-http/v2",
"github.com/go-kratos/kratos/cmd/protoc-gen-go-errors/v2",
"google.golang.org/protobuf/cmd/protoc-gen-go",
"google.golang.org/grpc/cmd/protoc-gen-go-grpc",
"github.com/envoyproxy/protoc-gen-validate",
"github.com/google/gnostic",
"github.com/go-kratos/kratos/cmd/kratos/v2@latest",
"github.com/go-kratos/kratos/cmd/protoc-gen-go-http/v2@latest",
"github.com/go-kratos/kratos/cmd/protoc-gen-go-errors/v2@latest",
"google.golang.org/protobuf/cmd/protoc-gen-go@latest",
"google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest",
"github.com/envoyproxy/protoc-gen-validate@latest",
"github.com/google/gnostic/cmd/protoc-gen-openapi@v0.6.2",
)
if err != nil {

Loading…
Cancel
Save