Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pnmadelaine committed Dec 18, 2024
1 parent 8537c2d commit 0f38ba0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions crate2nix/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub fn generate_config() -> crate::GenerateConfig {
output: "Cargo.nix".into(),
use_cargo_lock_checksums: true,
read_crate_hashes: true,
registry_hashes_json: "registry-hashes.json".into(),
}
}

Expand Down
4 changes: 4 additions & 0 deletions crate2nix/tests/self_build_up_to_date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ fn self_up_to_date() {
other_metadata_options: vec![],
use_cargo_lock_checksums: true,
read_crate_hashes: true,
registry_hashes_json: PathBuf::from("./registry-hashes.json"),
},
)
.unwrap();
Expand Down Expand Up @@ -79,6 +80,9 @@ fn assert_up_to_date(project_dir: &Path) {
other_metadata_options: vec![],
use_cargo_lock_checksums: true,
read_crate_hashes: true,
registry_hashes_json: PathBuf::from("../")
.join(project_dir)
.join("./registry-hashes.json"),
};
let metadata = BuildInfo::for_config(
&GenerateInfo {
Expand Down

0 comments on commit 0f38ba0

Please sign in to comment.