diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |
