From 0fa1ea471fbc196b5f0af10f0a50ab93c35f92f9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 3 Dec 2024 13:23:55 -0600 Subject: smarter IsReadOnly() logic --- findNext.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'findNext.go') diff --git a/findNext.go b/findNext.go index c347f3c..c0d16c9 100644 --- a/findNext.go +++ b/findNext.go @@ -107,7 +107,7 @@ func goodGodeps(repo *repolist.RepoRow) bool { for deps.Scan() { depRepo := deps.Next() // log.Info("found dep", depRepo.GetGoPath()) - if me.forge.IsReadOnly(depRepo.GetGoPath()) { + if me.forge.Config.IsReadOnly(depRepo.GoPath) { // log.Info("IsReadOnly = true", depRepo.GetGoPath()) continue } else { @@ -156,7 +156,7 @@ func fixGodeps(check *gitpb.Repo) bool { for deps.Scan() { depRepo := deps.Next() // log.Info("found dep", depRepo.GetGoPath()) - if me.forge.IsReadOnly(depRepo.GetGoPath()) { + if me.forge.Config.IsReadOnly(depRepo.GoPath) { log.Info("IsReadOnly = true", depRepo.GetGoPath()) continue } else { -- cgit v1.2.3