INNER CODE UNIT · Go

createProject

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

func createProject(ctx context.Context, sourcePath string) (*AtlantisProject, error) {
	options, err := options.NewTerragruntOptionsWithConfigPath(sourcePath)
	if err != nil {
		return nil, err
	}
	options.OriginalTerragruntConfigPath = sourcePath
	options.Env = getEnvs()

	parsingContext := config.NewParsingContext(ctx, options)
	dependencies, err := getDependencies(parsingContext, sourcePath)
	if err != nil {
		return nil, err
	}

	// dependencies being nil is a sign from `getDependencies` that this project should be skipped
	if dependencies == nil {
		return nil, nil
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…