Open js-timbirkett opened 4 years ago
@js-timbirkett It seems that this repo is no longer accepting PRs (#19).
There is another implementation of tgenv that avoids this problem by omitting that output.
https://github.com/taosmountain/tgenv
Here's a quick test you can run to check if tgenv is working correctly.
touch terragrunt.hcl
echo 'output "main" { value = "Hello, world!" }' > main.tf
terragrunt init
terragrunt apply --auto-approve
main="$(terragrunt output -raw main)"
echo "${main}"
With this implementation, the output value is mixed up with the debugging info:
$ echo "${main}"
[INFO] Getting version from tgenv-version-name
[INFO] TGENV_VERSION is 0.28.18
Hello, world!
With taosmountain's implementation, it works as you would expect.
$ echo "${main}"
Hello, world!
When running
terragrunt
there are 2 lines:These are sent to STDOUT, this causes issues with
terragrunt output
andterragrunt graph-dependencies
when piped into other tools likejq
ordot
.PR incoming.