INNER CODE UNIT · Go
gitRoot
transcend-io/terragrunt-atlantis-config · cmd/generate.go:707
gitRoot = absoluteGitRoot + string(filepath.Separator)
workingDirs := []string{gitRoot}
projectHclDirMap := map[string][]string{}
var projectHclDirs []string
if len(projectHclFiles) > 0 {
workingDirs = nil
// map [project-hcl-file] => directories containing project-hcl-file
projectHclDirMap = getAllTerragruntProjectHclFiles()
for _, projectHclFile := range projectHclFiles {
projectHclDirs = append(projectHclDirs, projectHclDirMap[projectHclFile]...)
workingDirs = append(workingDirs, projectHclDirMap[projectHclFile]...)
}
// parse terragrunt child modules outside the scope of projectHclDirs
if createHclProjectExternalChilds {
workingDirs = append(workingDirs, gitRoot)
}
}
// Read in the old config, if it already exists