diff options
| author | Jeff Carr <[email protected]> | 2024-12-03 18:03:54 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-03 18:03:54 -0600 |
| commit | 97a2f05cf2e0c09e8576db089950483a48afea71 (patch) | |
| tree | 2e258e0075cfa566c9de068846c3e5e32e4ed04e | |
| parent | 18905d7cf7ed2e2eb15f7f668c0ecbfcd6b94ec0 (diff) | |
renamev0.0.22
| -rw-r--r-- | goDep.redoGoMod.go | 3 | ||||
| -rw-r--r-- | isPrimitive.go (renamed from goDep.isPrimitive.go) | 2 | ||||
| -rw-r--r-- | shell.go | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/goDep.redoGoMod.go b/goDep.redoGoMod.go index 8bb8058..7e56989 100644 --- a/goDep.redoGoMod.go +++ b/goDep.redoGoMod.go @@ -52,7 +52,7 @@ func (repo *Repo) RedoGoMod() (bool, error) { repo.GoDeps = new(GoDeps) repo.GoPrimitive = false - ok, err := repo.isPrimativeGoMod() + ok, err := repo.IsPrimitive() if err != nil { // this means this repo does not depend on any other package log.Info("PRIMATIVE repo error:", repo.GoPath, "err =", err) @@ -121,7 +121,6 @@ func (repo *Repo) PublishedLen() int { // returns true if the last published func (all *Repos) GoDepsChanged(repo *Repo) (bool, error) { var upgrade bool = false - if repo.GoDeps == nil { repo.RedoGoMod() } diff --git a/goDep.isPrimitive.go b/isPrimitive.go index a894ecd..6579013 100644 --- a/goDep.isPrimitive.go +++ b/isPrimitive.go @@ -16,7 +16,7 @@ import ( // will return true if the repo is truly not dependent on _anything_ else // like spew or lib/widget // it assumes go mod ran init and tidy ran without error -func (repo *Repo) isPrimativeGoMod() (bool, error) { +func (repo *Repo) IsPrimitive() (bool, error) { // go mod init & go mod tidy ran without errors log.Log(GITPB, "isPrimativeGoMod()", repo.FullPath) tmp := filepath.Join(repo.FullPath, "go.mod") @@ -60,6 +60,7 @@ func (repo *Repo) Exists(filename string) bool { testf := filepath.Join(repo.FullPath, filename) _, err := os.Stat(testf) if err != nil { + log.Warn("gitpb: Exists() failed for", testf) return false } return true |
