From c93bda1d3c17358056feb7f608546754a60bd074 Mon Sep 17 00:00:00 2001 From: Ming Deng Date: Mon, 14 Dec 2020 16:25:27 +0800 Subject: [PATCH] Fix Bee --- cmd/commands/beefix/fix1To2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/commands/beefix/fix1To2.go b/cmd/commands/beefix/fix1To2.go index d40e01313..41e4bb8ac 100644 --- a/cmd/commands/beefix/fix1To2.go +++ b/cmd/commands/beefix/fix1To2.go @@ -24,12 +24,12 @@ import ( func fix1To2() int { beeLogger.Log.Info("Upgrading the application...") - cmdStr := `find ./ -name '*.go' -type f -exec sed -i '' -e 's/github.com\/astaxie\/beego/github.com\/astaxie\/beego\/adapter/g' {} \;` + cmdStr := `find ./ -name '*.go' -type f -exec sed -i '' -e 's/github.com\/astaxie\/beego/github.com\/beego\/beego\/v2\/adapter/g' {} \;` err := runShell(cmdStr) if err != nil { return 1 } - cmdStr = `find ./ -name '*.go' -type f -exec sed -i '' -e 's/"github.com\/astaxie\/beego\/adapter"/beego "github.com\/astaxie\/beego\/adapter"/g' {} \;` + cmdStr = `find ./ -name '*.go' -type f -exec sed -i '' -e 's/"github.com\/beego\/beego\/v2\/adapter"/beego "github.com\/beego\/beego\/v2\/adapter"/g' {} \;` err = runShell(cmdStr) if err != nil { return 1