INNER CODE UNIT · Go

getAllTerragruntFiles

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

func getAllTerragruntFiles(path string) ([]string, error) {
	options, err := options.NewTerragruntOptionsWithConfigPath(path)
	if err != nil {
		return nil, err
	}

	// If filterPaths is provided, override workingPath instead of gitRoot
	// We do this here because we want to keep the relative path structure of Terragrunt files
	// to root and just ignore the ConfigFiles
	workingPaths := []string{path}

	// filters are not working (yet) if using project hcl files (which are kind of filters by themselves)
	if len(filterPaths) > 0 && len(projectHclFiles) == 0 {
		workingPaths = []string{}
		for _, filterPath := range filterPaths {
			// get all matching folders
			theseWorkingPaths, err := filepath.Glob(filterPath)
			if err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…