-
Notifications
You must be signed in to change notification settings - Fork 280
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
Regression in 0.24.0 with Docker distroless causing "No such file or directory" error #741
Comments
Examining the commit in question the difference appears to be in the handing when the
I think the fix should be: if the cc @Siphalor |
But the error is correct, why would we return Ok if it is an error? Perhaps tui should fall back if this function returns an error? |
@TimonPost i suppose it depends on whether you wish crossterm to work in environments where Ideally it would (and did until 0.24) but if you don’t want to support that then it would be worth making the dependency explicit and updating the error message to make the context of the error clear (it took quite a bit of effort to trace the general |
This came up also for me in a similar context in mgunyho/tere#93, where my app (still using v0.24) is run in a chroot or clean nix environment as part of an integration test, so the Note however that #790 removed the zero-size check here, perhaps by mistake? There is also #422, but seems like tput is still used as of 0.27. |
Describe the bug
This took some tracking down!
Using
crossterm
0.24 (or 0.25) in Docker with the Google distroless image (gcr.io/distroless/cc
) results in aNo such file or directory
error.This error does not occur with
crossterm
0.23.2. The specific commit which introduced the regression is f523c11 (#680)Note that this error does not occur when using other base images such as
ubuntu
, it is specific to the combination of the above distroless image and the changes in the above commit.To Reproduce
Steps to reproduce the behavior:
Dockerfile
:The issue can be fixed by reverting f523c11 on top of the current
master
.OS
MacOS
Terminal/Console
iterm2
The text was updated successfully, but these errors were encountered: