1this derivation will be built:2 /nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv3building '/nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv' on 'ssh-ng://customer@mac02'4building '/nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv'5treefmt-check> treefmt v2.5.0traversed 332 files6treefmt-check> emitted 262 files for processing7treefmt-check> formatted 262 files (2 changed) in 195ms8treefmt-check> M Cargo.toml9treefmt-check> M harmonia-file-nar/src/archive/byte_stream.rs10treefmt-check> diff --git a/Cargo.toml b/Cargo.toml11treefmt-check> index db2dcd8..a48d837 10064412treefmt-check> --- a/Cargo.toml13treefmt-check> +++ b/Cargo.toml14treefmt-check> @@ -44,10 +44,10 @@ version = "3.1.0"15treefmt-check> 16treefmt-check> [workspace.dependencies]17treefmt-check> async-stream = "0.3"18treefmt-check> -blake3 = "1.8"19treefmt-check> -bstr = "1.11"20treefmt-check> -bytes = "1.11"21treefmt-check> -cap-std = "3"22treefmt-check> +blake3 = "1.8"23treefmt-check> +bstr = "1.11"24treefmt-check> +bytes = "1.11"25treefmt-check> +cap-std = "3"26treefmt-check> data-encoding = "2.11"27treefmt-check> derive_more = { version = "2.1", features = [ "display" ] }28treefmt-check> ed25519-dalek = "2"29treefmt-check> diff --git a/harmonia-file-nar/src/archive/byte_stream.rs b/harmonia-file-nar/src/archive/byte_stream.rs30treefmt-check> index 9ea0c2e..aeae3f3 10064431treefmt-check> --- a/harmonia-file-nar/src/archive/byte_stream.rs32treefmt-check> +++ b/harmonia-file-nar/src/archive/byte_stream.rs33treefmt-check> @@ -43,9 +43,7 @@ impl NarByteStream {34treefmt-check> // parent directory and then navigate to the child.35treefmt-check> let source: DirSource = if path.is_dir() {36treefmt-check> let dir = Dir::open_ambient_dir(&path, ambient_authority()).await?;37treefmt-check> - DirSource::open(dir)38treefmt-check> - .await39treefmt-check> - .map_err(io::Error::other)?40treefmt-check> + DirSource::open(dir).await.map_err(io::Error::other)?41treefmt-check> } else {42treefmt-check> let parent = path43treefmt-check> .parent()44treefmt-check> @@ -56,13 +54,8 @@ impl NarByteStream {45treefmt-check> .to_str()46treefmt-check> .ok_or_else(|| io::Error::other("non-UTF-8 file name"))?;47treefmt-check> let dir = Dir::open_ambient_dir(parent, ambient_authority()).await?;48treefmt-check> - let parent_source = DirSource::open(dir)49treefmt-check> - .await50treefmt-check> - .map_err(io::Error::other)?;51treefmt-check> - parent_source52treefmt-check> - .open(name)53treefmt-check> - .await54treefmt-check> - .map_err(io::Error::other)?55treefmt-check> + let parent_source = DirSource::open(dir).await.map_err(io::Error::other)?;56treefmt-check> + parent_source.open(name).await.map_err(io::Error::other)?57treefmt-check> };58treefmt-check> 59treefmt-check> // Write NAR to a duplex stream, read chunks and send to channel60error: build of '/nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv' on 'ssh-ng://customer@mac02' failed: Cannot build '/nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv'.61 Reason: builder failed with exit code 1.62 Output paths:63 /nix/store/sw4g533mpz262qz3vwhyhs9vi33a2c8d-treefmt-check64 Last 25 log lines:65 > let source: DirSource = if path.is_dir() {66 > let dir = Dir::open_ambient_dir(&path, ambient_authority()).await?;67 > - DirSource::open(dir)68 > - .await69 > - .map_err(io::Error::other)?70 > + DirSource::open(dir).await.map_err(io::Error::other)?71 > } else {72 > let parent = path73 > .parent()74 > @@ -56,13 +54,8 @@ impl NarByteStream {75 > .to_str()76 > .ok_or_else(|| io::Error::other("non-UTF-8 file name"))?;77 > let dir = Dir::open_ambient_dir(parent, ambient_authority()).await?;78 > - let parent_source = DirSource::open(dir)79 > - .await80 > - .map_err(io::Error::other)?;81 > - parent_source82 > - .open(name)83 > - .await84 > - .map_err(io::Error::other)?85 > + let parent_source = DirSource::open(dir).await.map_err(io::Error::other)?;86 > + parent_source.open(name).await.map_err(io::Error::other)?87 > };88 > 89 > // Write NAR to a duplex stream, read chunks and send to channel90 For full logs, run:91 nix log /nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv92error: Cannot build '/nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv'.93 Reason: builder failed with exit code 1.94 Output paths:95 /nix/store/sw4g533mpz262qz3vwhyhs9vi33a2c8d-treefmt-check