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"}) }