From 5d232293a002cc4b5bcb949a0e329337ab4e90b4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 17 Dec 2024 06:36:28 -0600 Subject: lots of cleanups --- init.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'init.go') diff --git a/init.go b/init.go index 7f29701..397fb23 100644 --- a/init.go +++ b/init.go @@ -21,10 +21,10 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList { me.viewName = "autotypist" - repos := me.forge.Repos.SortByGoPath() + repos := me.forge.Repos.SortByFullPath() for repos.Scan() { repo := repos.Next() - if me.forge.Config.IsReadOnly(repo.GoPath) { + if me.forge.Config.IsReadOnly(repo.GetGoPath()) { log.Info("repo scan readonly directory:", repo.FullPath) } else { log.Info("repo scan writable directory:", repo.FullPath) @@ -47,10 +47,10 @@ func InitBox(f *forgepb.Forge, newbox *gui.Node) *RepoList { me.viewName = "autotypist" - repos := me.forge.Repos.SortByGoPath() + repos := me.forge.Repos.SortByFullPath() for repos.Scan() { repo := repos.Next() - if me.forge.Config.IsReadOnly(repo.GoPath) { + if me.forge.Config.IsReadOnly(repo.GetGoPath()) { log.Info("repo scan readonly directory:", repo.FullPath) } else { log.Info("repo scan writable directory:", repo.FullPath) -- cgit v1.2.3