diff --git a/.github/workflows/gitee-sync.yml b/.github/workflows/gitee-sync.yml index 2d7c46b263b..b0703bd36b7 100644 --- a/.github/workflows/gitee-sync.yml +++ b/.github/workflows/gitee-sync.yml @@ -5,7 +5,7 @@ on: tags: - "*" -name: Sync to Gitee +name: Sync to GitEE jobs: run: name: Run @@ -13,8 +13,8 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v4 - - name: Mirror Github to Gitee - uses: Yikun/hub-mirror-action@v1.2 + - name: Mirror GitHub to GitEE + uses: Yikun/hub-mirror-action@v1.3 with: src: github/gogf dst: gitee/johng diff --git a/cmd/gf/internal/cmd/cmd_z_unit_gen_ctrl_test.go b/cmd/gf/internal/cmd/cmd_z_unit_gen_ctrl_test.go index ca4bc06c534..99e2935e96c 100644 --- a/cmd/gf/internal/cmd/cmd_z_unit_gen_ctrl_test.go +++ b/cmd/gf/internal/cmd/cmd_z_unit_gen_ctrl_test.go @@ -7,13 +7,14 @@ package cmd import ( + "path/filepath" + "testing" + "github.com/gogf/gf/cmd/gf/v2/internal/cmd/genctrl" "github.com/gogf/gf/v2/os/gfile" "github.com/gogf/gf/v2/test/gtest" "github.com/gogf/gf/v2/util/guid" "github.com/gogf/gf/v2/util/gutil" - "path/filepath" - "testing" ) func Test_Gen_Ctrl_Default(t *testing.T) { diff --git a/cmd/gf/internal/cmd/cmd_z_unit_gen_service_test.go b/cmd/gf/internal/cmd/cmd_z_unit_gen_service_test.go index 7f1f9c2fc52..b68a33dc5ce 100644 --- a/cmd/gf/internal/cmd/cmd_z_unit_gen_service_test.go +++ b/cmd/gf/internal/cmd/cmd_z_unit_gen_service_test.go @@ -7,13 +7,14 @@ package cmd import ( + "path/filepath" + "testing" + "github.com/gogf/gf/cmd/gf/v2/internal/cmd/genservice" "github.com/gogf/gf/v2/os/gfile" "github.com/gogf/gf/v2/test/gtest" "github.com/gogf/gf/v2/util/guid" "github.com/gogf/gf/v2/util/gutil" - "path/filepath" - "testing" ) func Test_Gen_Service_Default(t *testing.T) { diff --git a/cmd/gf/internal/cmd/genservice/genservice_calculate.go b/cmd/gf/internal/cmd/genservice/genservice_calculate.go index 089b7a93c1f..4312a6b399e 100644 --- a/cmd/gf/internal/cmd/genservice/genservice_calculate.go +++ b/cmd/gf/internal/cmd/genservice/genservice_calculate.go @@ -8,11 +8,11 @@ package genservice import ( "fmt" - "github.com/gogf/gf/v2/container/gmap" "go/parser" "go/token" "github.com/gogf/gf/v2/container/garray" + "github.com/gogf/gf/v2/container/gmap" "github.com/gogf/gf/v2/text/gregex" "github.com/gogf/gf/v2/text/gstr" ) diff --git a/cmd/gf/internal/cmd/testdata/genservice/logic/article/article.go b/cmd/gf/internal/cmd/testdata/genservice/logic/article/article.go index 01d889a25ae..26e695a8c06 100644 --- a/cmd/gf/internal/cmd/testdata/genservice/logic/article/article.go +++ b/cmd/gf/internal/cmd/testdata/genservice/logic/article/article.go @@ -8,6 +8,7 @@ package article import ( "context" + "github.com/gogf/gf/cmd/gf/v2/internal/cmd/testdata/genservice/service" ) diff --git a/cmd/gf/internal/utility/utils/utils.go b/cmd/gf/internal/utility/utils/utils.go index bd92581f22c..66625079ade 100644 --- a/cmd/gf/internal/utility/utils/utils.go +++ b/cmd/gf/internal/utility/utils/utils.go @@ -9,6 +9,7 @@ package utils import ( "context" "fmt" + "golang.org/x/tools/imports" "github.com/gogf/gf/cmd/gf/v2/internal/consts"