-
Notifications
You must be signed in to change notification settings - Fork 10
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
Change tests to not create python scripts during builds #182
Comments
Thanks for working on a NixOS package! I don't think that we necessarily need to use But circling back a bit, why do you need the tests to begin with? Are you creating some kind of developer build? I am not against running tests as part of installation in general, but bear in mind that |
Hello, thank you for the quick answer.
I just got an answer that showed me how to replace these paths at build time (kind of like a patch, but more dynamic), so probably no upstream "fix" required. NixOS/nixpkgs#140644 (comment)
Thank you so much for pointing that out. According to https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md#disabling-package-tests-disabling-package-tests testing things should be the default, I did not think much about it, to be honest. Thank you very much for the help, great job on nitrocli by the way, I absolutely love it! |
Hello!
I want to package this tool for NixOS, but nix has no
/usr/bin/env
during the build (or testing) phase.Would it be possible to create these scripts beforehand and just setting the execute-bit during testing?
Nix will replace
/usr/bin/env
in the shebang, just not for files that are created during the testing stage.I am specifically referring to these parts:
nitrocli/src/tests/run.rs
Line 297 in 97fd3be
nitrocli/src/tests/run.rs
Line 328 in 97fd3be
For reference, this is my NixOS packaging request, describing the issue in greater detail: NixOS/nixpkgs#140644
Thank you very much!
The text was updated successfully, but these errors were encountered: