Replies: 6 comments 15 replies
-
@coolapso it's a great catch! I will look that this deeper and return to this thread |
Beta Was this translation helpful? Give feedback.
-
I understand that these feature interaction could lead to issues. However inserting a breaking change in default behavior of tenv doesn't feel that great to me... Moreover, there is several way to disable the auto install feature ( In my opinion, the best path of action for tenv project is to warn users in the documentation in a noticeable way. |
Beta Was this translation helpful? Give feedback.
-
Original thread from tofuenv: tofuutils/tofuenv#41 |
Beta Was this translation helpful? Give feedback.
-
Hi guys, sorry I wake up late on this, but to me the core issue is NOT the This right fix to me would have been:
instead of:
Keep the main usage pattern as easy and enjoyable as possible. Don't put extra unecessary burden just for a small % of users. |
Beta Was this translation helpful? Give feedback.
-
Hi guys .. Wondering is the variable TENV_AUTO_INSTALL default to false now ? We have around 50+ pipelines using the tenv image started failing as we updated the image and we were forced to update environment variables to add TENV_AUTO_INSTALL=true for all. |
Beta Was this translation helpful? Give feedback.
-
Hi all ... bringing up this discussion to propose a change in a default behavior of tenv.
Today I had a quite unpleasant surprise with terragrunt and tenv, which could have caused major issues. On a fresh install of my work system when executing terragrunt, I ended up using Tofu instead of Terraform, gladly this time, it was on a completely new terraform state on a development environment. now I wonder if this was the cause of some terraform state issues some days ago.
By default tenv seems to have some sort of catchall that automatically installs the latest terraform / tofu / terragrunt if the application is executed and the binary doesn't exist.
While this feature hasn't been problematic in the standalone version managers, because users tipically have one, or the other, it becomes problematic when there are multiple of them at the same time. Because terragrunt is calling OpenTofu by default and causing tenv to install tofu, unaware (like myself today) users suddenly can see them using OpenTofu instead of terraform because, and this can be quite dangerous!
Sure it can be controlled by the
TERRAGRUNT_TFPATH
variable, but this default behavior in this "multi tool" environment allied with poor communication and users distractions is not the best experience, specially when no breaking changes communicated, also default behaviors can always change and a tool such as tenv should be as decoupled as possible from those default behaviors and I believe this feature should be OFF by default and controlled wither with some flags, environment variables, dotfile on the${HOME}/.config/
.Here's some other discussion about this: gruntwork-io/terragrunt#3172 (comment)
Thanks a lot for the hard work :)
Beta Was this translation helpful? Give feedback.
All reactions