Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive prompt waiting for stdin response on wrong line #3842

Open
lorengordon opened this issue Feb 5, 2025 · 2 comments
Open

Interactive prompt waiting for stdin response on wrong line #3842

lorengordon opened this issue Feb 5, 2025 · 2 comments
Labels
bug Something isn't working preserved Preserved issues never go stale

Comments

@lorengordon
Copy link
Contributor

Describe the bug

When run in interactive mode, Terragrunt displays the prompt from Terraform, but then waits for the response on the next line.

Steps To Reproduce

Pretty sure just run terragrunt apply in a project that has changes to apply.

Expected behavior

Expected Terragrunt to wait for the stdin response on the same line as the prompt.

Nice to haves

14:19:18.525 STDOUT terraform: Do you want to perform these actions?
14:19:18.525 STDOUT terraform:   Terraform will perform the actions described above.
14:19:18.525 STDOUT terraform:   Only 'yes' will be accepted to approve.
14:19:18.525 STDOUT terraform:   Enter a value:
yes

Versions

  • Terragrunt version: 0.72.6
  • OpenTofu/Terraform version: Terraform 1.10.5
  • Environment details (Ubuntu 20.04, Windows 10, etc.): Ubuntu 22.04
@lorengordon lorengordon added the bug Something isn't working label Feb 5, 2025
@yhakbar yhakbar added the preserved Preserved issues never go stale label Feb 5, 2025
@yhakbar
Copy link
Collaborator

yhakbar commented Feb 5, 2025

Hey @lorengordon !

It's definitely a nicer experience to have the prompt in-line. I imagine we do some buffer flushing that's causing that, but we can look to address it in the future.

I don't think it's a big deal in the short term, though, right?

@lorengordon
Copy link
Contributor Author

Yes, it works. But it's a fairly recent regression, I believe. It wasn't doing this in the 0.69.x series. I recently jumped to 0.72.x, which is when I noticed the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preserved Preserved issues never go stale
Projects
None yet
Development

No branches or pull requests

2 participants