run go mod init and tidy
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
a40f961924
commit
8fcf500a80
5
main.go
5
main.go
|
@ -44,6 +44,11 @@ func main() {
|
||||||
os.Exit(-1)
|
os.Exit(-1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !shell.Exists("go.sum") {
|
||||||
|
shell.Run([]string{"go", "mod", "init"})
|
||||||
|
shell.Run([]string{"go", "mod", "tidy"})
|
||||||
|
}
|
||||||
|
|
||||||
cmd := []string{"go", "list", "-f", "'{{.Name}}'"}
|
cmd := []string{"go", "list", "-f", "'{{.Name}}'"}
|
||||||
result := shell.Run(cmd)
|
result := shell.Run(cmd)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue