From 0965bf8e2207f5544f33c9f475bb0a923ce28ae1 Mon Sep 17 00:00:00 2001 From: Tony Chen Date: Mon, 17 Jan 2022 18:42:05 +0800 Subject: [PATCH] fix(cmd/kratos): specified version for upgrade (#1772) --- cmd/kratos/internal/upgrade/upgrade.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cmd/kratos/internal/upgrade/upgrade.go b/cmd/kratos/internal/upgrade/upgrade.go index 5c5f8818d..a22eeca4a 100644 --- a/cmd/kratos/internal/upgrade/upgrade.go +++ b/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 {