one must pass the go path to go mod init

This commit is contained in:
Jeff Carr 2024-03-09 18:30:04 -06:00
parent 7d3e4ce84e
commit 2622e90b1f
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ func (rs *RepoStatus) MakeRedomod() (bool, error) {
log.Log(REPO, "rm failed", err, output) log.Log(REPO, "rm failed", err, output)
return false, err return false, err
} }
err, output = rs.RunCmd([]string{"go", "mod", "init"}) err, output = rs.RunCmd([]string{"go", "mod", "init", rs.GoPath()})
if err != nil { if err != nil {
log.Log(REPO, "go mod init failed", err, output) log.Log(REPO, "go mod init failed", err, output)
return false, err return false, err