one must pass the go path to go mod init
This commit is contained in:
parent
7d3e4ce84e
commit
2622e90b1f
|
@ -125,7 +125,7 @@ func (rs *RepoStatus) MakeRedomod() (bool, error) {
|
|||
log.Log(REPO, "rm failed", err, output)
|
||||
return false, err
|
||||
}
|
||||
err, output = rs.RunCmd([]string{"go", "mod", "init"})
|
||||
err, output = rs.RunCmd([]string{"go", "mod", "init", rs.GoPath()})
|
||||
if err != nil {
|
||||
log.Log(REPO, "go mod init failed", err, output)
|
||||
return false, err
|
||||
|
|
Loading…
Reference in New Issue