this derivation will be built: /nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv building '/nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv' on 'ssh-ng://customer@mac02' building '/nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv' treefmt-check> treefmt v2.5.0traversed 332 files treefmt-check> emitted 262 files for processing treefmt-check> formatted 262 files (2 changed) in 195ms treefmt-check> M Cargo.toml treefmt-check> M harmonia-file-nar/src/archive/byte_stream.rs treefmt-check> diff --git a/Cargo.toml b/Cargo.toml treefmt-check> index db2dcd8..a48d837 100644 treefmt-check> --- a/Cargo.toml treefmt-check> +++ b/Cargo.toml treefmt-check> @@ -44,10 +44,10 @@ version = "3.1.0" treefmt-check> treefmt-check> [workspace.dependencies] treefmt-check> async-stream = "0.3" treefmt-check> -blake3 = "1.8" treefmt-check> -bstr = "1.11" treefmt-check> -bytes = "1.11" treefmt-check> -cap-std = "3" treefmt-check> +blake3 = "1.8" treefmt-check> +bstr = "1.11" treefmt-check> +bytes = "1.11" treefmt-check> +cap-std = "3" treefmt-check> data-encoding = "2.11" treefmt-check> derive_more = { version = "2.1", features = [ "display" ] } treefmt-check> ed25519-dalek = "2" treefmt-check> diff --git a/harmonia-file-nar/src/archive/byte_stream.rs b/harmonia-file-nar/src/archive/byte_stream.rs treefmt-check> index 9ea0c2e..aeae3f3 100644 treefmt-check> --- a/harmonia-file-nar/src/archive/byte_stream.rs treefmt-check> +++ b/harmonia-file-nar/src/archive/byte_stream.rs treefmt-check> @@ -43,9 +43,7 @@ impl NarByteStream { treefmt-check> // parent directory and then navigate to the child. treefmt-check> let source: DirSource = if path.is_dir() { treefmt-check> let dir = Dir::open_ambient_dir(&path, ambient_authority()).await?; treefmt-check> - DirSource::open(dir) treefmt-check> - .await treefmt-check> - .map_err(io::Error::other)? treefmt-check> + DirSource::open(dir).await.map_err(io::Error::other)? treefmt-check> } else { treefmt-check> let parent = path treefmt-check> .parent() treefmt-check> @@ -56,13 +54,8 @@ impl NarByteStream { treefmt-check> .to_str() treefmt-check> .ok_or_else(|| io::Error::other("non-UTF-8 file name"))?; treefmt-check> let dir = Dir::open_ambient_dir(parent, ambient_authority()).await?; treefmt-check> - let parent_source = DirSource::open(dir) treefmt-check> - .await treefmt-check> - .map_err(io::Error::other)?; treefmt-check> - parent_source treefmt-check> - .open(name) treefmt-check> - .await treefmt-check> - .map_err(io::Error::other)? treefmt-check> + let parent_source = DirSource::open(dir).await.map_err(io::Error::other)?; treefmt-check> + parent_source.open(name).await.map_err(io::Error::other)? treefmt-check> }; treefmt-check> treefmt-check> // Write NAR to a duplex stream, read chunks and send to channel error: build of '/nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv' on 'ssh-ng://customer@mac02' failed: Cannot build '/nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/sw4g533mpz262qz3vwhyhs9vi33a2c8d-treefmt-check Last 25 log lines: > let source: DirSource = if path.is_dir() { > let dir = Dir::open_ambient_dir(&path, ambient_authority()).await?; > - DirSource::open(dir) > - .await > - .map_err(io::Error::other)? > + DirSource::open(dir).await.map_err(io::Error::other)? > } else { > let parent = path > .parent() > @@ -56,13 +54,8 @@ impl NarByteStream { > .to_str() > .ok_or_else(|| io::Error::other("non-UTF-8 file name"))?; > let dir = Dir::open_ambient_dir(parent, ambient_authority()).await?; > - let parent_source = DirSource::open(dir) > - .await > - .map_err(io::Error::other)?; > - parent_source > - .open(name) > - .await > - .map_err(io::Error::other)? > + let parent_source = DirSource::open(dir).await.map_err(io::Error::other)?; > + parent_source.open(name).await.map_err(io::Error::other)? > }; > > // Write NAR to a duplex stream, read chunks and send to channel For full logs, run: nix log /nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv error: Cannot build '/nix/store/d4ymkln9g25b1ra8r6w77d7gn6kgbshq-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/sw4g533mpz262qz3vwhyhs9vi33a2c8d-treefmt-check