From 2622e90b1f48f49f007222a1d3b696fd06fb0ca5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 9 Mar 2024 18:30:04 -0600 Subject: [PATCH] one must pass the go path to go mod init --- goConfig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goConfig.go b/goConfig.go index d6adff2..920a9d4 100644 --- a/goConfig.go +++ b/goConfig.go @@ -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