Skip to content

Commit 1dc17cb

Browse files
committed
Fix createGoMod
1 parent 1530055 commit 1dc17cb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

init_proj/init_proj.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ func createGoMod(dir string, url string) error {
6565
fmt.Printf("go mod init %s\n", modName)
6666
goModCmd := exec.Command("go", "mod", "init", modName)
6767
goModCmd.Dir = dir
68-
goModCmd.Stdout = nil
69-
goModCmd.Stderr = os.Stderr
7068
// go mod init outputs info messages on stderr; suppress those but print
7169
// if the command fails
7270
if output, err := goModCmd.CombinedOutput(); err != nil {

0 commit comments

Comments
 (0)