diff --git a/src/builder.rs b/src/builder.rs index dc068da5..34307c5f 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -103,6 +103,7 @@ fn instrumented_build( paths.push(src); } LogDatum::Text(line) => log_lines.push(line), + LogDatum::NonUtf(line) => log_lines.push(line), }; (paths, log_lines) @@ -124,10 +125,15 @@ pub fn run(root_nix_file: &NixFile, cas: &ContentAddressable) -> Result LogDatum::Text(line.as_ref().to_owned()), + None => LogDatum::NonUtf(line.as_ref().to_owned()), Some(linestr) => { // Lines about evaluating a file are much more common, so looking // for them first will reduce comparisons.