run go mod init and tidy

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-29 15:51:04 -06:00
parent a40f961924
commit 8fcf500a80
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,11 @@ func main() {
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}}'"}
result := shell.Run(cmd)