this derivation will be built: /nix/store/0ckhis5dd6lv8zh6a1g8fbd8aiyhvjsi-treefmt-check.drv building '/nix/store/0ckhis5dd6lv8zh6a1g8fbd8aiyhvjsi-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, into the overlay when one is configured. The treefmt-check> 194 │ │ ╭ /// addrcache update, script, unlink and type-2 reply 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`: the name exists in either directory. Overwriting treefmt-check> │ ╰────' treefmt-check> 199 │ │ ╭ /// or shadowing it would let an invitee replace a known key. The write treefmt-check> │ ╰──' treefmt-check> 200 │ ╭ │ /// itself is `O_CREAT|O_EXCL`, so there is no TOCTOU in 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:73:28 treefmt-check> │ treefmt-check> 73 │ 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:83:56 treefmt-check> │ treefmt-check> 83 │ 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 638ms treefmt-check> Error: failed to finalise formatting: formatting failures detected error: Cannot build '/nix/store/0ckhis5dd6lv8zh6a1g8fbd8aiyhvjsi-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/kcx55iif0ml3iyqkazpwb1hlvyvbs4kg-treefmt-check Last 25 log lines: > ┌─ crates/tincd/src/hostdirs.rs:83:56 > │ > 83 │ 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 638ms > Error: failed to finalise formatting: formatting failures detected For full logs, run: nix log /nix/store/0ckhis5dd6lv8zh6a1g8fbd8aiyhvjsi-treefmt-check.drv