diff --git a/flake.lock b/flake.lock index 105b374..b6986fb 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,20 @@ { "nodes": { + "crane": { + "locked": { + "lastModified": 1791754810, + "narHash": "sha256-cN0Mgk+sQtCJcGWs9H4M0CnLRAuC4I8aCwiBTcBJs6E=", + "owner": "ipetkov", + "repo": "crane", + "rev": "bd63bf1d0a0f6dcacd7549c714a671ee63b0db6a", + "type": "github" + }, + "original": { + "owner": "ipetkov", + "repo": "crane", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems" @@ -36,6 +51,7 @@ }, "root": { "inputs": { + "crane": "crane", "flake-utils": "flake-utils", "nixpkgs": "nixpkgs", "rust-overlay": "rust-overlay" diff --git a/flake.nix b/flake.nix index d153d00..538486d 100644 --- a/flake.nix +++ b/flake.nix @@ -84,6 +84,8 @@ checks.tests = craneLib.cargoTest (common // { inherit cargoArtifacts; cargoExtraArgs = "--locked ${testPackages}"; + # Nothing builds on the test run's target folder: don't store it. + doInstallCargoArtifacts = false; preCheck = '' # Its own lock file pins crates that the vendored set may lack. rm -f cli/tests/actors/toolbox/Cargo.lock