Skip to content

Commit 156170e

Browse files
committed
fix terragrunt relative paths by converting to absolute path
1 parent da993ad commit 156170e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libs/digger_config/digger_config.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@ func hydrateDiggerConfigYamlWithTerragrunt(configYaml *DiggerConfigYaml, parsing
400400
}
401401

402402
for _, atlantisProject := range atlantisConfig.Projects {
403+
404+
// normalize paths
405+
for i, whenModified := range atlantisProject.Autoplan.WhenModified {
406+
atlantisProject.Autoplan.WhenModified[i] = path.Join(pathPrefix, atlantisProject.Dir, whenModified)
407+
}
408+
403409
configYaml.Projects = append(configYaml.Projects, &ProjectYaml{
404410
Name: atlantisProject.Name,
405411
Dir: path.Join(pathPrefix, atlantisProject.Dir),

0 commit comments

Comments
 (0)