From 1ce8393bcacbe774715e73d144e24835954c6216 Mon Sep 17 00:00:00 2001 From: ewy Date: Fri, 17 Apr 2026 01:01:07 +0200 Subject: fix some sources not having a name --- model/new.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/new.go b/model/new.go index 6f5c71b..cddb404 100644 --- a/model/new.go +++ b/model/new.go @@ -16,7 +16,7 @@ func NewState(f fs.FS, locations []string, indexers []Indexer, runners []Runner) var sources = make([]*Source, len(locations), len(locations)) for i, loc := range locations { wg.Go(func() { - _, dirName := filepath.Split(loc) + _, dirName := filepath.Split(strings.TrimSuffix(loc, "/")) src := &Source{ Path: loc, Identity: identity.New(dirName), -- cgit v1.3