You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running terraform (and most likely tofu) from PowerShell (pwsh) on Linux, the pwsh session will be suspended after terraform exits.
To Reproduce
Steps to reproduce the behavior:
Install latest version of tenv on Ubuntu 24.04
Install latest version of terraform using tenv
Install latest version of PowerShell (pwsh)
Start PowerShell
Run terraform version (or any other terraform command)
Expected behavior
PowerShell should continue to function after terraform exits.
Additional context
The problem is due to tenv lightproxy placing terraform as foreground before starting it. Confirmed that setting TENV_DETACHED_PROXY fixes the problem. Also recreated the issue manually and confirmed that it's foreground that causes the issue.
The text was updated successfully, but these errors were encountered:
Confirmed that setting TENV_DETACHED_PROXY fixes the problem
I tested this on Powershell on Mac (which I believe will behave the same way), and to clarify a bit: I saw this behavior when $env:TENV_DETACHED_PROXY is set to $True.
The behavior goes away when setting it to $False. Unfortunately, this makes the original bug come back (cntrl+c immediately exits without gracefully shutting down). (Related #255 / #304)
Some more data. Not good news, unfortunately.
@simongottschlag Can you confirm if you meant that when you set TENV_DETACHED_PROXY to $False it fixed the problem? Or was the behavior on Linux that setting it to $True fixed it?
Describe the bug
When running terraform (and most likely tofu) from PowerShell (pwsh) on Linux, the pwsh session will be suspended after terraform exits.
To Reproduce
Steps to reproduce the behavior:
terraform version
(or any other terraform command)Expected behavior
PowerShell should continue to function after terraform exits.
Additional context
The problem is due to tenv lightproxy placing terraform as foreground before starting it. Confirmed that setting TENV_DETACHED_PROXY fixes the problem. Also recreated the issue manually and confirmed that it's foreground that causes the issue.
The text was updated successfully, but these errors were encountered: