complete multi-root library path support

This commit is contained in:
ShukeBta
2026-06-26 23:02:07 +08:00
parent 2fbfed3ac9
commit e41105910e
5 changed files with 128 additions and 1 deletions
+9
View File
@@ -180,6 +180,15 @@ func (b *serviceContainerBuilder) libraryRoots() []string {
}
roots := make([]string, 0, len(libs))
for _, l := range libs {
if len(l.Roots) > 0 {
for _, root := range l.Roots {
if !root.Enabled || strings.TrimSpace(root.Path) == "" {
continue
}
roots = append(roots, root.Path)
}
continue
}
if strings.TrimSpace(l.Path) != "" {
roots = append(roots, l.Path)
}