in astro/config.go [174:193]
func rewriteConfigPaths(rootPath string, config *conf.Project) error {
if err := rewriteRelPaths(rootPath, false,
&config.SessionRepoDir,
&config.TerraformCodeRoot,
&config.TerraformDefaults.Path); err != nil {
return err
}
if err := rewriteRelPathsInSlices(rootPath, config.Hooks.Startup, config.Hooks.PreModuleRun); err != nil {
return err
}
for _, moduleConfig := range config.Modules {
if err := rewriteRelPathsInSlices(rootPath, moduleConfig.Hooks.PreModuleRun); err != nil {
return err
}
}
return nil
}