mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-28 11:16:37 +08:00
complete multi-root library path support
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user