INNER CODE UNIT · Go

getAllTerragruntProjectHclFiles

transcend-io/terragrunt-atlantis-config · cmd/generate.go:669

func getAllTerragruntProjectHclFiles() map[string][]string {
	projectHclFiles := projectHclFiles
	orderedHclFilePaths := map[string][]string{}
	uniqueHclFileAbsPaths := map[string][]string{}
	for _, projectHclFile := range projectHclFiles {
		err := filepath.Walk(gitRoot, func(path string, info os.FileInfo, err error) error {
			if err != nil {
				return err
			}

			if !info.IsDir() && info.Name() == projectHclFile {
				orderedHclFilePaths[projectHclFile] = append(orderedHclFilePaths[projectHclFile], filepath.Dir(path))
			}

			return nil
		})

		if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…