summaryrefslogtreecommitdiff
path: root/clone.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-18 20:08:14 -0600
committerJeff Carr <[email protected]>2024-12-18 20:08:14 -0600
commit163484be1f487de1f3239256953a5c0f6feb86a6 (patch)
treef5309c7e23af219c7c1a8481cb6aa1621abf0cc7 /clone.go
parentd473f80919b996a6ab9d0e94c1450585c3b21f49 (diff)
attempting to clean go.* handling againv0.7.7
Diffstat (limited to 'clone.go')
-rw-r--r--clone.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/clone.go b/clone.go
index dc433f2..ca6be35 100644
--- a/clone.go
+++ b/clone.go
@@ -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)
}