Terragrunt graph-dependencies paths from fully qualified to relative #3582
Labels
bug
Something isn't working
contributions-requested
Requesting contributions from the community
preserved
Preserved issues never go stale
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.$ tree $(pwd) /private/tmp/foo └── bar └── baz ├── main.tf └── terragrunt.hcl 3 directories, 2 files
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 #3248, which is suspicious due to the
prefix
snippet:terragrunt/configstack/module.go
Lines 309 to 320 in 6839411
But this code did not land seemingly until e37d71e and
v0.61.0
.The text was updated successfully, but these errors were encountered: