summaryrefslogtreecommitdiff
path: root/goSrcScan.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 22:14:57 -0500
committerJeff Carr <[email protected]>2025-09-11 22:14:57 -0500
commiteda91e3af66e4c894f35c13a393a01238464b750 (patch)
tree10135af0d368e2d68d267931673996bd9c8ee850 /goSrcScan.go
parent6c3162f7ce42a85afcff0b984fe6972f96fd3c8a (diff)
stop using GoSrc()
Diffstat (limited to 'goSrcScan.go')
-rw-r--r--goSrcScan.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/goSrcScan.go b/goSrcScan.go
index f80742f..1f07862 100644
--- a/goSrcScan.go
+++ b/goSrcScan.go
@@ -22,7 +22,7 @@ func reloadCheck(repo *gitpb.Repo) error {
}
func (f *Forge) ScanGoSrc() (bool, error) {
- dirs, err := gitDirectoriesNew(f.goSrc)
+ dirs, err := gitDirectoriesNew(f.Config.ReposDir)
if err != nil {
return false, err
}
@@ -44,8 +44,8 @@ func (f *Forge) ScanGoSrc() (bool, error) {
var gopaths []string
for _, dir := range dirs {
// log.Info("forge.ScanGoSrc()", dir)
- if strings.HasPrefix(dir, f.goSrc) {
- gopath := strings.TrimPrefix(dir, f.goSrc)
+ if strings.HasPrefix(dir, f.Config.ReposDir) {
+ gopath := strings.TrimPrefix(dir, f.Config.ReposDir)
gopath = strings.Trim(gopath, "/")
if r := f.FindByGoPath(gopath); r != nil {
// log.Info("already have", gopath)
@@ -193,7 +193,7 @@ func (f *Forge) rillScanDirs(gopaths []string) (int, error) {
}
func (f *Forge) checkpath(gopath string, url string) (*gitpb.Repo, error) {
- fullpath := filepath.Join(f.GetGoSrc(), gopath)
+ fullpath := filepath.Join(f.Config.ReposDir, gopath)
log.Info("forge creating protobuf for", fullpath)
repo, err := f.NewGoRepo(gopath, "")
if err != nil {