go mod tidy 支持 -go=1.16 -go=1.17
This commit is contained in:
parent
9584398b77
commit
903d1d9553
@ -60,6 +60,8 @@ func (g *golang) ModInit(modPath string) *define.Result {
|
|||||||
//
|
//
|
||||||
// Date : 20:17 2022/5/22
|
// Date : 20:17 2022/5/22
|
||||||
func (g *golang) ModTidy() *define.Result {
|
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"})
|
return Execute(g.workDir, g.goCmdPath, []string{"mod", "tidy"})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user