-
Notifications
You must be signed in to change notification settings - Fork 168
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
Cargo check fails to load crates.io-index correctly #94
Comments
|
In the meantime, I have a very hacky workaround (for Write your Naersk package: my-crate = naersk.buildPackage {
# standard!
inherit src;
pname = "my-crate";
version = "0.1";
# hacks for making clippy work in CI
postInstall = ''
cp -r $CARGO_HOME $out/.cargo
'';
}; And then your pre-commit hooks: pre-commit-hooks.run {
inherit src;
hooks = {
my-clippy = {
enable = true;
entry = ''
bash -c ' \
cp -r ${builtins.head my-crate.builtDependencies}/.cargo/ .cargo
CARGO_HOME=.cargo \
PATH=${rust}/bin:${pkgs.gcc}/bin:$PATH \
cargo clippy --release --features strict --offline -- --no-deps
'
'';
pass_filenames = false;
types = [ "file" "rust" ];
};
};
}; |
This is not fixed, I am still getting issues with clippy not being able to download dependencies |
Ya, I am getting bit by this today also. I am looking into solutions. My error for reference.
|
#396 tries to address this. |
When enabling
cargo-check.enable = true
I get this error:I guess the
class=Net
has gotten there by mistake?The text was updated successfully, but these errors were encountered: