this derivation will be built: /nix/store/d78aldndhfgspw6ydx6wswc84g424wk2-treefmt-check.drv building '/nix/store/d78aldndhfgspw6ydx6wswc84g424wk2-treefmt-check.drv' treefmt-check> tribuchet: building on jamie treefmt-check> treefmt v2.5.0ERRO formatter | ast-grep: failed to apply with options '[scan]': exit status 1 treefmt-check> treefmt-check> error[no-comment-essays]: comment block of 8+ lines; condense it to the WHY treefmt-check> ┌─ crates/tincd/src/invitation_serve.rs:200:1 treefmt-check> │ treefmt-check> 193 │ ╭ /// Writes the host file (overlay if configured). Addrcache/script/unlink/ treefmt-check> 194 │ │ ╭ /// type-2 are daemon-side. treefmt-check> │ ╰────────────' treefmt-check> 195 │ │ ╭ /// treefmt-check> │ ╰──────────' treefmt-check> 196 │ │ ╭ /// # Errors treefmt-check> │ ╰────────' treefmt-check> 197 │ │ ╭ /// - `BadPubkey`: newline = config-injection (**security**). treefmt-check> │ ╰──────' treefmt-check> 198 │ │ ╭ /// - `HostFileExists`: don't overwrite or shadow a known node in either treefmt-check> │ ╰────' treefmt-check> 199 │ │ ╭ /// dir (**security**: attacker could replace a known key). The write treefmt-check> │ ╰──' treefmt-check> 200 │ ╭ │ /// itself is `O_CREAT|O_EXCL` (no TOCTOU within the write dir). treefmt-check> │ │ ╰' treefmt-check> 201 │ │ ╭ pub(crate) fn finalize( treefmt-check> │ ╰────────────────^ treefmt-check> · │ treefmt-check> 246 │ │ } treefmt-check> │ ╰───────────────' treefmt-check> treefmt-check> error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path treefmt-check> ┌─ crates/tincd/src/hostdirs.rs:72:28 treefmt-check> │ treefmt-check> 72 │ pub fn names(&self) -> std::io::Result> { treefmt-check> │ ^^^^^^^^^^^^^^^ treefmt-check> treefmt-check> error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path treefmt-check> ┌─ crates/tincd/src/hostdirs.rs:82:56 treefmt-check> │ treefmt-check> 82 │ fn collect(dir: &Path, into: &mut BTreeSet) -> std::io::Result<()> { treefmt-check> │ ^^^^^^^^^^^^^^^ treefmt-check> treefmt-check> error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path treefmt-check> ┌─ crates/tincd/tests/two_daemons/reload.rs:57:41 treefmt-check> │ treefmt-check> 57 │ fn invite_bob(alice: &Node) -> (String, std::path::PathBuf) { treefmt-check> │ ^^^^^^^^^^^^^^^^^^ treefmt-check> treefmt-check> error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path treefmt-check> ┌─ crates/tincd/tests/two_daemons/reload.rs:85:24 treefmt-check> │ treefmt-check> 85 │ fn cli_paths(confbase: std::path::PathBuf) -> tinc_tools::names::Paths { treefmt-check> │ ^^^^^^^^^^^^^^^^^^ treefmt-check> treefmt-check> Error: 5 error(s) found in code. treefmt-check> Help: Scan succeeded and found error level diagnostics in the codebase. treefmt-check> treefmt-check> treefmt-check> traversed 719 files treefmt-check> emitted 298 files for processing treefmt-check> formatted 26 files (0 changed) in 639ms treefmt-check> Error: failed to finalise formatting: formatting failures detected error: Cannot build '/nix/store/d78aldndhfgspw6ydx6wswc84g424wk2-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/1zifzk5p5ckl54ix1m3hr5z6dx882h3h-treefmt-check Last 25 log lines: > ┌─ crates/tincd/src/hostdirs.rs:82:56 > │ > 82 │ fn collect(dir: &Path, into: &mut BTreeSet) -> std::io::Result<()> { > │ ^^^^^^^^^^^^^^^ > > error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path > ┌─ crates/tincd/tests/two_daemons/reload.rs:57:41 > │ > 57 │ fn invite_bob(alice: &Node) -> (String, std::path::PathBuf) { > │ ^^^^^^^^^^^^^^^^^^ > > error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path > ┌─ crates/tincd/tests/two_daemons/reload.rs:85:24 > │ > 85 │ fn cli_paths(confbase: std::path::PathBuf) -> tinc_tools::names::Paths { > │ ^^^^^^^^^^^^^^^^^^ > > Error: 5 error(s) found in code. > Help: Scan succeeded and found error level diagnostics in the codebase. > > > traversed 719 files > emitted 298 files for processing > formatted 26 files (0 changed) in 639ms > Error: failed to finalise formatting: formatting failures detected For full logs, run: nix log /nix/store/d78aldndhfgspw6ydx6wswc84g424wk2-treefmt-check.drv