(dep models.Dependency)
| 99 | } |
| 100 | |
| 101 | func initSubmodulesNative(dep models.Dependency) { |
| 102 | dirModule := filepath.Join(env.GetModulesDir(), dep.GetName()) |
| 103 | cmd := exec.Command("git", "submodule", "update", "--init", "--recursive") |
| 104 | cmd.Dir = dirModule |
| 105 | |
| 106 | if err := runCommand(cmd); err != nil { |
| 107 | msg.Die(err.Error()) |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | func runCommand(cmd *exec.Cmd) error { |
| 112 | cmd.Stdout = newWriter(false) |
no test coverage detected