diff options
| author | Jeff Carr <[email protected]> | 2024-12-18 20:08:14 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-18 20:08:14 -0600 |
| commit | 163484be1f487de1f3239256953a5c0f6feb86a6 (patch) | |
| tree | f5309c7e23af219c7c1a8481cb6aa1621abf0cc7 /clone.go | |
| parent | d473f80919b996a6ab9d0e94c1450585c3b21f49 (diff) | |
attempting to clean go.* handling againv0.7.7
Diffstat (limited to 'clone.go')
| -rw-r--r-- | clone.go | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -105,17 +105,6 @@ func recursiveClone(check *gitpb.Repo) error { } func makeValidGoSum(check *gitpb.Repo) error { - if check.Exists("go.mod") { - log.Info("makeValidGoSum() attempt SetPrimitive()") - if err := check.SetPrimitive(); err != nil { - log.Info("SetPrimitive() failed", err) - return err - } - } - if check.GoInfo.GoPrimitive { - log.Info(check.GetGoPath(), "is a golang primitive! no need to parse go.sum because there is not one!") - return nil - } // attempt to grab the notes check.Run([]string{"git", "fetch", "origin", "refs/notes/*:refs/notes/*"}) @@ -137,15 +126,6 @@ func makeValidGoSum(check *gitpb.Repo) error { if err := check.RunStrict(cmd); err != nil { log.Info("go mod init failed", err) } - if check.Exists("go.mod") { - if err := check.SetPrimitive(); err != nil { - return err - } - } - if check.GoInfo.GoPrimitive { - log.Info(check.GetGoPath(), "is a golang primitive! no need to parse go.sum because there is not one!") - return nil - } if err := check.RunStrict([]string{"go", "mod", "tidy"}); err != nil { log.Info("go mod tidy failed", err) } |
