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

[Bug] Setctty set but Ctty not valid in child #6

Open
samuel-phan opened this issue Feb 12, 2021 · 0 comments
Open

[Bug] Setctty set but Ctty not valid in child #6

samuel-phan opened this issue Feb 12, 2021 · 0 comments

Comments

@samuel-phan
Copy link

samuel-phan commented Feb 12, 2021

Description

With Golang 1.15, I faced this error when spawning a expect.NewExpect():

Setctty set but Ctty not valid in child

Suggested fix

The issue has been fixed in this PR: creack/pty#103

I think you should switch the pty lib from:

"github.com/kr/pty"

to:

"github.com/creack/pty"

Workaround

I forced the requirement in my go.mod:

require (
	github.com/creack/pty v1.1.11
)
samuel-phan pushed a commit to samuel-phan/expect that referenced this issue Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant