this derivation will be built: /nix/store/l0zpwd0ns64mbhxmd1h0f103x7j6059f-treefmt-check.drv treefmt-check> treefmt v2.5.0traversed 226 files treefmt-check> emitted 177 files for processing treefmt-check> formatted 177 files (6 changed) in 989ms treefmt-check> M argunix-web/src/badge.rs treefmt-check> M argunix-web/src/bin/dev.rs treefmt-check> M argunix-web/src/lib.rs treefmt-check> M argunix-web/src/synthetic_flake.rs treefmt-check> M argunix-web/src/ui.rs treefmt-check> M docs/configuration.md treefmt-check> diff --git a/argunix-web/src/badge.rs b/argunix-web/src/badge.rs treefmt-check> index 83c49bd..b209b1e 100644 treefmt-check> --- a/argunix-web/src/badge.rs treefmt-check> +++ b/argunix-web/src/badge.rs treefmt-check> @@ -15,11 +15,11 @@ treefmt-check> //! rendering deterministic for tests. treefmt-check> treefmt-check> use crate::state::AppState; treefmt-check> -use crate::ui::{repo_url_for, UiError}; treefmt-check> +use crate::ui::{UiError, repo_url_for}; treefmt-check> use argunix_domain::{EvalStatus, Slug}; treefmt-check> use argunix_store::{EvalStore, RepoStore}; treefmt-check> use axum::extract::{Path as AxumPath, State}; treefmt-check> -use axum::http::{header, HeaderValue, StatusCode}; treefmt-check> +use axum::http::{HeaderValue, StatusCode, header}; treefmt-check> use axum::response::{IntoResponse, Response}; treefmt-check> treefmt-check> /// Status the badge surfaces. Distinct from `EvalStatus` so we can treefmt-check> diff --git a/argunix-web/src/bin/dev.rs b/argunix-web/src/bin/dev.rs treefmt-check> index 672ef5e..8174988 100644 treefmt-check> --- a/argunix-web/src/bin/dev.rs treefmt-check> +++ b/argunix-web/src/bin/dev.rs treefmt-check> @@ -34,8 +34,8 @@ use argunix_store::{ treefmt-check> NewJob, RepoStore, SbomStore, SqlxStore, treefmt-check> }; treefmt-check> use argunix_web::{ treefmt-check> - spawn_host_sampler, AppStateInner, CancelRegistry, CoalescePool, ConfigSnapshot, HostStatsRing, treefmt-check> - LiveLogRegistry, PauseRegistry, treefmt-check> + AppStateInner, CancelRegistry, CoalescePool, ConfigSnapshot, HostStatsRing, LiveLogRegistry, treefmt-check> + PauseRegistry, spawn_host_sampler, treefmt-check> }; treefmt-check> use chrono::{DateTime, TimeZone, Utc}; treefmt-check> treefmt-check> diff --git a/argunix-web/src/lib.rs b/argunix-web/src/lib.rs treefmt-check> index 7fc0f4f..1b22d4c 100644 treefmt-check> --- a/argunix-web/src/lib.rs treefmt-check> +++ b/argunix-web/src/lib.rs treefmt-check> @@ -23,19 +23,19 @@ mod ui; treefmt-check> mod webhook; treefmt-check> treefmt-check> pub use auto_install::ensure_all as ensure_webhooks; treefmt-check> -pub use cancel::{branch_key, CancelRegistry, CancelToken}; treefmt-check> +pub use cancel::{CancelRegistry, CancelToken, branch_key}; treefmt-check> pub use coalesce::CoalescePool; treefmt-check> -pub use coord_versions::{detect as detect_coordinator_versions, CoordinatorVersions}; treefmt-check> -pub use host_stats::{spawn_sampler as spawn_host_sampler, HostStatsRing}; treefmt-check> +pub use coord_versions::{CoordinatorVersions, detect as detect_coordinator_versions}; treefmt-check> +pub use host_stats::{HostStatsRing, spawn_sampler as spawn_host_sampler}; treefmt-check> pub use live_log::{LiveLog, LiveLogRegistry}; treefmt-check> pub use pause::PauseRegistry; treefmt-check> treefmt-check> -pub use policy::{evaluate as evaluate_policy, Decision as PolicyDecision}; treefmt-check> -pub use state::{build_providers, AppState, AppStateInner, BuildProvidersError, ConfigSnapshot}; treefmt-check> +pub use policy::{Decision as PolicyDecision, evaluate as evaluate_policy}; treefmt-check> +pub use state::{AppState, AppStateInner, BuildProvidersError, ConfigSnapshot, build_providers}; treefmt-check> pub use webhook::{eval_target_url, job_target_url}; treefmt-check> treefmt-check> -use axum::routing::{get, post}; treefmt-check> use axum::Router; treefmt-check> +use axum::routing::{get, post}; treefmt-check> use std::sync::Arc; treefmt-check> use tower_http::services::ServeDir; treefmt-check> treefmt-check> diff --git a/argunix-web/src/synthetic_flake.rs b/argunix-web/src/synthetic_flake.rs treefmt-check> index 191ef4a..8b2d2ad 100644 treefmt-check> --- a/argunix-web/src/synthetic_flake.rs treefmt-check> +++ b/argunix-web/src/synthetic_flake.rs treefmt-check> @@ -17,7 +17,7 @@ use argunix_config::BinaryCache; treefmt-check> use argunix_domain::{EvalId, Slug}; treefmt-check> use argunix_store::{EvalStore, JobRecord, JobStore, RepoStore}; treefmt-check> use axum::extract::{Path as AxumPath, State}; treefmt-check> -use axum::http::{header, HeaderValue, StatusCode}; treefmt-check> +use axum::http::{HeaderValue, StatusCode, header}; treefmt-check> use axum::response::{IntoResponse, Response}; treefmt-check> use std::collections::BTreeMap; treefmt-check> treefmt-check> diff --git a/argunix-web/src/ui.rs b/argunix-web/src/ui.rs treefmt-check> index 66b5d0a..07b0487 100644 treefmt-check> --- a/argunix-web/src/ui.rs treefmt-check> +++ b/argunix-web/src/ui.rs treefmt-check> @@ -2316,11 +2316,7 @@ fn registry_run_command(detail: &str) -> Option { treefmt-check> } treefmt-check> treefmt-check> fn short_sha(sha: &str) -> &str { treefmt-check> - if sha.len() >= 7 { treefmt-check> - &sha[..7] treefmt-check> - } else { treefmt-check> - sha treefmt-check> - } treefmt-check> + if sha.len() >= 7 { &sha[..7] } else { sha } treefmt-check> } treefmt-check> treefmt-check> fn fmt_opt_time(t: Option>) -> String { treefmt-check> diff --git a/docs/configuration.md b/docs/configuration.md treefmt-check> index fb00ae3..a4b2860 100644 treefmt-check> --- a/docs/configuration.md treefmt-check> +++ b/docs/configuration.md treefmt-check> @@ -269,6 +269,7 @@ A namespace with no `{slug}` is used verbatim for every bound repo. treefmt-check> ### Events treefmt-check> treefmt-check> By default, notifications are sent only on failures (`eval_failed`, `job_failed`). You can optionally specify the exact events to alert on using the `events` field: treefmt-check> + treefmt-check> - `eval_success`: Notifies when a repository evaluation succeeds. treefmt-check> - `eval_failed`: Notifies when a repository evaluation fails (e.g., Nix evaluation error). treefmt-check> - `job_success`: Notifies when an individual build job succeeds. error: Cannot build '/nix/store/l0zpwd0ns64mbhxmd1h0f103x7j6059f-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/scznn6jq9sdww1capshlxmvw34lpmx2x-treefmt-check Last 25 log lines: > @@ -2316,11 +2316,7 @@ fn registry_run_command(detail: &str) -> Option { > } >  > fn short_sha(sha: &str) -> &str { > - if sha.len() >= 7 { > - &sha[..7] > - } else { > - sha > - } > + if sha.len() >= 7 { &sha[..7] } else { sha } > } >  > fn fmt_opt_time(t: Option>) -> String { > diff --git a/docs/configuration.md b/docs/configuration.md > index fb00ae3..a4b2860 100644 > --- a/docs/configuration.md > +++ b/docs/configuration.md > @@ -269,6 +269,7 @@ A namespace with no `{slug}` is used verbatim for every bound repo. > ### Events >  > By default, notifications are sent only on failures (`eval_failed`, `job_failed`). You can optionally specify the exact events to alert on using the `events` field: > + > - `eval_success`: Notifies when a repository evaluation succeeds. > - `eval_failed`: Notifies when a repository evaluation fails (e.g., Nix evaluation error). > - `job_success`: Notifies when an individual build job succeeds. For full logs, run: nix log /nix/store/l0zpwd0ns64mbhxmd1h0f103x7j6059f-treefmt-check.drv