rename
This commit is contained in:
parent
18905d7cf7
commit
97a2f05cf2
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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")
|
Loading…
Reference in New Issue