-
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
Tests failing under on Nix build (Linux / maybe MacOS): crates/lovely-core/src/log.rs:51:37 called Result::unwrap()
on an Err
value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
#106
Comments
Exporting a temp directory as home still results in a crash:
|
Hey @antipatico, thanks for your report. I think it's reasonable to include a way to disable the logfile. Would an environment variable be convenient? |
I actually worked around the home issue by setting the HOME environment variable to a temporary directory. Unfortunately, the tests still fail. |
Arg parsing is at fault here, specifically https://docs.rs/getargs/latest/getargs/enum.Error.html#variant.DoesNotRequireValue. I'll tweak things so that operation doesn't cause an explicit panic. |
Hi!
I am the (unofficial) maintainer of balatro and lovely on NixOS! A while ago I packaged balatro and lovely-injector for NixOS.
Everything seems to be in order and working, other than I have to disable tests for lovely which fails with the following error:
I am no Rust expert, but I think the problem is because the test is trying to create the log directory in the home folder of the user which is obviously not available in any standard sandboxed build environment such as Nix.
Unfortunately, my rust knowledge gets me only this far. It would be great if this can be fixed, so that tests can run on linux too!
Thank you for the amazing work.
The text was updated successfully, but these errors were encountered: