From 2beea97f0554ff7a7893c7d6e6b4f97c6295f734 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 16 Oct 2025 02:58:19 -0500 Subject: more stuff --- doVerify.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doVerify.go b/doVerify.go index 39019a0..647f808 100644 --- a/doVerify.go +++ b/doVerify.go @@ -30,12 +30,13 @@ func cleanNamespace(r *gitpb.Repo) string { gowork := me.forge.Config.ReposDir // todo: detect if using go.work file newpath, err := filepath.Rel(gowork, r.FullPath) - log.Info(newpath, gowork, "is gowork. fullpath:", r.FullPath) - if err != nil { - log.Info("cleanNamespace got err", newpath, err) + log.Info("cleanNamespace()", newpath, gowork, "is gowork. fullpath:", r.FullPath) + if err == nil { + log.Info("cleanNamespace returned", newpath) // relative path to gosrc or gowork is the namespace return newpath } + log.Info("cleanNamespace got err", newpath, err) // check for other stuff. use the URLs return "" } -- cgit v1.2.3