From 903d1d9553c2208bd9ed8062381129ff6f34513a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 4 Jul 2022 10:56:17 +0800 Subject: [PATCH] =?UTF-8?q?go=20mod=20tidy=20=E6=94=AF=E6=8C=81=20-go=3D1.?= =?UTF-8?q?16=20-go=3D1.17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- golang.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/golang.go b/golang.go index 5bcdf11..2910877 100644 --- a/golang.go +++ b/golang.go @@ -60,6 +60,8 @@ func (g *golang) ModInit(modPath string) *define.Result { // // Date : 20:17 2022/5/22 func (g *golang) ModTidy() *define.Result { + _ = Execute(g.workDir, g.goCmdPath, []string{"mod", "tidy", "-go=1.16"}) + _ = Execute(g.workDir, g.goCmdPath, []string{"mod", "tidy", "-go=1.17"}) return Execute(g.workDir, g.goCmdPath, []string{"mod", "tidy"}) }