1this derivation will be built:2 /nix/store/4jhr5ff6h954qyv8rxvfhg0z2xkn4n3n-treefmt-check.drv3building '/nix/store/4jhr5ff6h954qyv8rxvfhg0z2xkn4n3n-treefmt-check.drv'4treefmt-check> treefmt v2.5.0traversed 332 files5treefmt-check> emitted 262 files for processing6treefmt-check> formatted 262 files (2 changed) in 327ms7treefmt-check> M Cargo.toml8treefmt-check> M harmonia-file-nar/src/archive/byte_stream.rs9treefmt-check> diff --git a/Cargo.toml b/Cargo.toml10treefmt-check> index db2dcd8..a48d837 10064411treefmt-check> --- a/Cargo.toml12treefmt-check> +++ b/Cargo.toml13treefmt-check> @@ -44,10 +44,10 @@ version = "3.1.0"14treefmt-check> 15treefmt-check> [workspace.dependencies]16treefmt-check> async-stream = "0.3"17treefmt-check> -blake3 = "1.8"18treefmt-check> -bstr = "1.11"19treefmt-check> -bytes = "1.11"20treefmt-check> -cap-std = "3"21treefmt-check> +blake3 = "1.8"22treefmt-check> +bstr = "1.11"23treefmt-check> +bytes = "1.11"24treefmt-check> +cap-std = "3"25treefmt-check> data-encoding = "2.11"26treefmt-check> derive_more = { version = "2.1", features = [ "display" ] }27treefmt-check> ed25519-dalek = "2"28treefmt-check> diff --git a/harmonia-file-nar/src/archive/byte_stream.rs b/harmonia-file-nar/src/archive/byte_stream.rs29treefmt-check> index 9ea0c2e..aeae3f3 10064430treefmt-check> --- a/harmonia-file-nar/src/archive/byte_stream.rs31treefmt-check> +++ b/harmonia-file-nar/src/archive/byte_stream.rs32treefmt-check> @@ -43,9 +43,7 @@ impl NarByteStream {33treefmt-check> // parent directory and then navigate to the child.34treefmt-check> let source: DirSource = if path.is_dir() {35treefmt-check> let dir = Dir::open_ambient_dir(&path, ambient_authority()).await?;36treefmt-check> - DirSource::open(dir)37treefmt-check> - .await38treefmt-check> - .map_err(io::Error::other)?39treefmt-check> + DirSource::open(dir).await.map_err(io::Error::other)?40treefmt-check> } else {41treefmt-check> let parent = path42treefmt-check> .parent()43treefmt-check> @@ -56,13 +54,8 @@ impl NarByteStream {44treefmt-check> .to_str()45treefmt-check> .ok_or_else(|| io::Error::other("non-UTF-8 file name"))?;46treefmt-check> let dir = Dir::open_ambient_dir(parent, ambient_authority()).await?;47treefmt-check> - let parent_source = DirSource::open(dir)48treefmt-check> - .await49treefmt-check> - .map_err(io::Error::other)?;50treefmt-check> - parent_source51treefmt-check> - .open(name)52treefmt-check> - .await53treefmt-check> - .map_err(io::Error::other)?54treefmt-check> + let parent_source = DirSource::open(dir).await.map_err(io::Error::other)?;55treefmt-check> + parent_source.open(name).await.map_err(io::Error::other)?56treefmt-check> };57treefmt-check> 58treefmt-check> // Write NAR to a duplex stream, read chunks and send to channel59error: Cannot build '/nix/store/4jhr5ff6h954qyv8rxvfhg0z2xkn4n3n-treefmt-check.drv'.60 Reason: builder failed with exit code 1.61 Output paths:62 /nix/store/fnmv184fdv0b0n2bygpp42p34hg78r84-treefmt-check63 Last 25 log lines:64 > let source: DirSource = if path.is_dir() {65 > let dir = Dir::open_ambient_dir(&path, ambient_authority()).await?;66 > - DirSource::open(dir)67 > - .await68 > - .map_err(io::Error::other)?69 > + DirSource::open(dir).await.map_err(io::Error::other)?70 > } else {71 > let parent = path72 > .parent()73 > @@ -56,13 +54,8 @@ impl NarByteStream {74 > .to_str()75 > .ok_or_else(|| io::Error::other("non-UTF-8 file name"))?;76 > let dir = Dir::open_ambient_dir(parent, ambient_authority()).await?;77 > - let parent_source = DirSource::open(dir)78 > - .await79 > - .map_err(io::Error::other)?;80 > - parent_source81 > - .open(name)82 > - .await83 > - .map_err(io::Error::other)?84 > + let parent_source = DirSource::open(dir).await.map_err(io::Error::other)?;85 > + parent_source.open(name).await.map_err(io::Error::other)?86 > };87 > 88 > // Write NAR to a duplex stream, read chunks and send to channel89 For full logs, run:90 nix log /nix/store/4jhr5ff6h954qyv8rxvfhg0z2xkn4n3n-treefmt-check.drv