-
Notifications
You must be signed in to change notification settings - Fork 88
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
Add support for passing options to the Clippy command #295
Add support for passing options to the Clippy command #295
Conversation
I was not able to successfully run the tests on neither this branch nor The tests fail with this error message:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, thanks! I suspect you'll need to update the README manually (or run ./scripts/gen
)
564bb68
to
f7bca2d
Compare
@nmattia I updated the README |
@iensu could you check if this patch fixes the tests? 👀 diff --git a/test/default.nix b/test/default.nix
index 75097f6..cc7e2c1 100644
--- a/test/default.nix
+++ b/test/default.nix
@@ -2,9 +2,22 @@
let
sources = import ../nix/sources.nix;
- pkgs = import ../nix {
- inherit system nixpkgs;
- };
+ pkgs =
+ let
+ pkgs' = import ../nix {
+ inherit system nixpkgs;
+ };
+
+ older-pkgs = import ../nix {
+ inherit system;
+
+ nixpkgs = "nixpkgs-21.05";
+ };
+
+ in
+ pkgs' // {
+ git = older-pkgs.git;
+ };
naersk = pkgs.callPackage ../default.nix {
inherit (pkgs.rustPackages) cargo rustc; |
@Patryk27 Nopes, I get the same issue :( |
Ouch! Which OS / machine are you using? |
I'm running NixOS on a Samsung laptop (model NP900X3G). It only has 4GB of memory, so I wonder if I'm running into an OOM error, but nothing in the error message indicates that.
Linux xibalba 6.1.34 #1-NixOS SMP PREEMPT_DYNAMIC Wed Jun 14 09:15:34 UTC 2023 x86_64 GNU/Linux |
Alright, I've managed to reproduce this (funnily, on an Ubuntu with Nix installed separately) 😅 It's related to the fact that some of Naersk's tests create Git repos dynamically:
... which causes them to be put in Anyway, since it seems to work correctly on CI (maybe we're running something akin to |
Good you managed to reproduce it! Seems like a potentially hairy issue :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 🚀
Pass additional options such as
-W clippy::pedantic
to thecargo clippy
command.Closes #294