go mod tidy 支持 -go=1.16 -go=1.17
This commit is contained in:
		| @ -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"}) | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user