-
Notifications
You must be signed in to change notification settings - Fork 24
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
assumes stty is exactly at /bin/stty #22
Comments
@coreyoconnor is there a reliable way to fix this for all platforms? |
Any particular reason an absolute path is used? What about relying on PATH to contain the stty executable? |
@coreyoconnor not sure, I didn't write the original platform-specific code. We might need somebody to try alternatives on a couple of platforms, I'm not actively using this code so not able to help there. |
I understand :-) I'm not familiar with Go at all. The change might be as easy as replacing "/bin/stty" with "stty". However, I haven't figured out how to build a modified go package/lib so not really sure. |
I have exactly the same problem on NixOS. Speakeasy is a transitive dependency of etcdctl (https://github.com/etcd-io/etcd/tree/master/etcdctl). User manipulation fails with:
|
the hardcoded path to the until this is fixed, theres a few entire communities of (linux) operating system users that can't use any programs that rely on speakeasy so to fix its either export the var or lookup with PATH thanks |
Any updates on this? Any blockers for merging #24 to resolve this? This is currently blocking me on some workflows due to some projects that use this dependency, so willing to help test if PR needs some more testing before being merged. |
PRs welcome! I would imagine this working with the hardcoded path becoming a function that can either check the PATH for an stty or else some type of global setting (since this can realistically only have one value during a program's execution on a given platform). |
What about delegating to |
Sorry, I meant to link to the existing PR #24 above but realized I just linked to this issue instead. I'm not a Go developer but the approach in this PR using https://pkg.go.dev/os/exec#LookPath looks good to me. |
stty is not at /bin/stty on all unix platforms. For instance, on NixOS, stty is at /run/current-system/sw/bin/stty.
On NixOS use of speakeasy results in:
which is to be expected as /bin/stty does not exist.
The text was updated successfully, but these errors were encountered: