INNER CODE UNIT · Go
sliceUnion
transcend-io/terragrunt-atlantis-config · cmd/generate.go:109
func sliceUnion(a, b []string) []string {
m := make(map[string]bool)
for _, item := range a {
m[item] = true
}
for _, item := range b {
if _, ok := m[item]; !ok {
a = append(a, item)
}
}
return a
}
// Parses the terragrunt config at `path` to find all modules it depends on
func getDependencies(ctx *config.ParsingContext, path string) ([]string, error) {
res, err, _ := requestGroup.Do(path, func() (interface{}, error) {