INNER CODE UNIT · Go
getDependencies
transcend-io/terragrunt-atlantis-config · cmd/generate.go:125
func getDependencies(ctx *config.ParsingContext, path string) ([]string, error) {
res, err, _ := requestGroup.Do(path, func() (interface{}, error) {
// Check if this path has already been computed
cachedResult, ok := getDependenciesCache.get(path)
if ok {
return cachedResult.dependencies, cachedResult.err
}
// parse the module path to find what it includes, as well as its potential to be a parent
// return nils to indicate we should skip this project
isParent, includes, err := parseModule(ctx, path)
if err != nil {
getDependenciesCache.set(path, getDependenciesOutput{nil, err})
return nil, err
}
if isParent && ignoreParentTerragrunt {
getDependenciesCache.set(path, getDependenciesOutput{nil, nil})
return nil, nil