Open KetchupBomb opened 6 days ago
I should have mentioned: I'm looking to see if I can restore the original behavior. Is there a CLI flag I can use to restore the DOT representation to use fully-qualified paths?
Hey @KetchupBomb , it looks like this behavior should be adjustable via the --terragrunt-log-show-abs-paths
or a dedicated flag on the graph-dependencies
command.
Are you interested in doing the update to make that configurable? If so, we're happy to help you make it a happen. Otherwise, I'm not sure when we'd be able to prioritize this, as I don't think the majority of users find graph-dependencies
unusable with relative paths.
Describe the bug
Between versions
v0.58.9
andv.58.10
the behavior of at leastgraph-dependencies
changed when using Terragrunt's working dir configuration.When provided a relative path that doesn't end in a root module, the DOT representation changes from fully-qualified paths to relative paths, rooted on Terragrunt's working dir.
Steps To Reproduce
Configuration layout.
main.tf
andterragrunt.hcl
are both empty.Terragrunt
v0.58.9
Terragrunt
v0.58.10
What's interesting is that if you use a fully-qualified path for Terragrunt's working dir, even on
v.0.58.9
, you get relative paths:Expected behavior
I am not sure what the preferred output should be. I can see arguments being made for fully-qualified or relative paths.
My problem is that I can't see what changes between
v0.58.9..v0.58.10
would cause this behavior difference.Nice to haves
Versions
Additional context
We use
terragrunt graph-dependencies
to provide summaries on our Plans and Applies. We were using a very old version of Terragrunt and were going through the upgrade process when we ran into this behavioral change.In searching for what code change might have induced this, the first hit was https://github.com/gruntwork-io/terragrunt/pull/3248, which is suspicious due to the
prefix
snippet:https://github.com/gruntwork-io/terragrunt/blob/6839411edffbed98ca0bfb402f82b7700b418891/configstack/module.go#L309-L320
But this code did not land seemingly until https://github.com/gruntwork-io/terragrunt/commit/e37d71e9cfebb512a61e904500df8ee957fca201 and
v0.61.0
.