Skip to content
New issue

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

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

Already on GitHub? # to your account

[BUG] Interactive command not working #1

Closed
brunomacf opened this issue Jul 4, 2021 · 1 comment
Closed

[BUG] Interactive command not working #1

brunomacf opened this issue Jul 4, 2021 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed released

Comments

@brunomacf
Copy link
Contributor

Bug Description

Commands that fire interactive programs do not work properly. It seems this is because we spawn commands with new process group id (using SysProcAttr.Setpgid) and for some reason we loose stdout/stdin connection somehow.

Steps To Reproduce

  1. Create the following actfile:
# actfile.yml
version: 1

acts:
  vim:
    cmds: vim
  1. Run act run vim
  2. We going to see a warning telling that input is not from a terminal and vim does not work properly.

Expected Behaviour

The interactive program should be indeed interactive and does not show any errors.

Screenshots

screen

Environment

  • OS: MacOS
  • OS Version: 10.15.7
  • Act Version: 1.1.7
@brunomacf brunomacf added bug Something isn't working help wanted Extra attention is needed labels Jul 4, 2021
github-actions bot pushed a commit that referenced this issue Jul 5, 2021
## [1.1.9](v1.1.8...v1.1.9) (2021-07-05)

### Bug Fixes

* **log:** fix double logging for detached acts ([c71a80a](c71a80a))
* **run:** convert flags to upper snake case so they can be correctly used in commands as env vars ([fd90f06](fd90f06))
* **run:** use SysProcAttr.Setsid instead of SysProcAttr.Setpgid to allow interactive acts ([b836e0a](b836e0a)), closes [#1](#1)
@brunomacf
Copy link
Contributor Author

🎉 This issue has been resolved in version 1.1.9 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working help wanted Extra attention is needed released
Projects
None yet
Development

No branches or pull requests

1 participant