Skip to content

Commit

Permalink
fix(core): resolve dependent task output files path (#22253)
Browse files Browse the repository at this point in the history
  • Loading branch information
sloonz committed May 3, 2024
1 parent d71a324 commit ea75b62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nx/src/native/tasks/hashers/hash_task_output.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::path::Path;
use crate::native::cache::expand_outputs::get_files_for_outputs;
use crate::native::glob::build_glob_set;
use crate::native::hasher::{hash_array, hash_file};
Expand All @@ -13,7 +14,7 @@ pub fn hash_task_output(workspace_root: &str, glob: &str, outputs: &[String]) ->
let hashes = output_files
.into_par_iter()
.filter(|file| glob.is_match(file))
.filter_map(hash_file)
.filter_map(|file| hash_file(Path::new(workspace_root).join(file).to_str().expect("path contains invalid utf-8").to_owned()))
.collect::<Vec<_>>();
Ok(hash_array(hashes))
}

0 comments on commit ea75b62

Please sign in to comment.