Skip to content

Commit 0f38ba0

Browse files
committed
fix
1 parent 8537c2d commit 0f38ba0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

crate2nix/src/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub fn generate_config() -> crate::GenerateConfig {
1313
output: "Cargo.nix".into(),
1414
use_cargo_lock_checksums: true,
1515
read_crate_hashes: true,
16+
registry_hashes_json: "registry-hashes.json".into(),
1617
}
1718
}
1819

crate2nix/tests/self_build_up_to_date.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ fn self_up_to_date() {
3434
other_metadata_options: vec![],
3535
use_cargo_lock_checksums: true,
3636
read_crate_hashes: true,
37+
registry_hashes_json: PathBuf::from("./registry-hashes.json"),
3738
},
3839
)
3940
.unwrap();
@@ -79,6 +80,9 @@ fn assert_up_to_date(project_dir: &Path) {
7980
other_metadata_options: vec![],
8081
use_cargo_lock_checksums: true,
8182
read_crate_hashes: true,
83+
registry_hashes_json: PathBuf::from("../")
84+
.join(project_dir)
85+
.join("./registry-hashes.json"),
8286
};
8387
let metadata = BuildInfo::for_config(
8488
&GenerateInfo {

0 commit comments

Comments
 (0)