// Config: parse groups.yaml
-// Copyright (C) 2021 Simon Ruderich
+// Copyright (C) 2021-2022 Simon Ruderich
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// TransitivelyDetectedGroups returns all groups which depend on "detected"
// groups, either directly or by depending on groups which transitively depend
// on "detected" groups.
-func TransitivelyDetectedGroups(groups map[string][]string) []string {
+func TransitivelyDetectedGroups(groups map[string][]string) map[string]bool {
work := make(map[string][]string)
for k, v := range groups {
work[k] = v
break
}
}
-
- var res []string
- for x := range detected {
- res = append(res, x)
- }
- sort.Strings(res)
- return res
+ return detected
}