From 9d6165fc9f11f63393efd8252ba2293554fd947d Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Sun, 11 May 2025 19:16:10 +0700 Subject: [PATCH] chore(flake): bump inputs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Flake lock file updates: • Updated input 'git-hooks-nix': 'github:cachix/git-hooks.nix/dcf5072734cb576d2b0c59b2ac44f5050b5eac82?narHash=sha256-DwOTp7nvfi8mRfuL1escHDXabVXFGT1VlPD1JHrtrco%3D' (2025-03-22) → 'github:cachix/git-hooks.nix/fa466640195d38ec97cf0493d6d6882bc4d14969?narHash=sha256-Wb2xeSyOsCoTCTj7LOoD6cdKLEROyFAArnYoS%2BnoCWo%3D' (2025-05-06) • Updated input 'github-graphql-schema': 'github:octokit/graphql-schema/9b496a6254fc104be9c957e00a7f312d9006a03b?narHash=sha256-ZGrArf3/mGbaxGtMHb0nEJGMv%2BjT/LyzwzufLSOLg14%3D' (2025-04-23) → 'github:octokit/graphql-schema/3b88e02665bbf85ce462a4e8e44c9595777f4a1b?narHash=sha256-aFW52fhkF91sLbzE010/JUdyk/ZNzp4rpTHFj6yrFUo%3D' (2025-05-07) • Updated input 'nci': 'github:yusdacra/nix-cargo-integration/3651a63811d1301e49b581cc0534f78319fcd0ca?narHash=sha256-3K7u0SEmJTOzp1kKAngUIp9hgwafJCyjntFeXJQu6Pw%3D' (2025-04-26) → 'github:yusdacra/nix-cargo-integration/dfe3569fb4863b415df6c110e3fa962fcd3d462c?narHash=sha256-LbqIsh%2BGWqRmuG1RD6qxOtggB/GtByRaryncjNb17Co%3D' (2025-05-10) • Updated input 'nci/rust-overlay': 'github:oxalica/rust-overlay/f1aeaeb91ba9c88f235ab82bd23d7a4931fe736c?narHash=sha256-8AuOyfLNlcbLy0AqERSNUUoDdY%2B3THZI7%2B9VrXUfGqg%3D' (2025-04-26) → 'github:oxalica/rust-overlay/be092436d4c0c303b654e4007453b69c0e33009e?narHash=sha256-GcUWDQUDRYrD34ol90KGUpjbVcOfUNbv0s955jPecko%3D' (2025-05-10) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/507b63021ada5fee621b6ca371c4fca9ca46f52c?narHash=sha256-jhZDfXVKdD7TSEGgzFJQvEEZ2K65UMiqW5YJ2aIqxMA%3D' (2025-04-23) → 'github:NixOS/nixpkgs/b3582c75c7f21ce0b429898980eddbbf05c68e55?narHash=sha256-FshoQvr6Aor5SnORVvh/ZdJ1Sa2U4ZrIMwKBX5k2wu0%3D' (2025-05-07) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/8d404a69efe76146368885110f29a2ca3700bee6?narHash=sha256-aRmUh0AMwcbdjJHnytg1e5h5ECcaWtIFQa6d9gI85AI%3D' (2025-04-18) → 'github:numtide/treefmt-nix/29ec5026372e0dec56f890e50dbe4f45930320fd?narHash=sha256-4h3s1L/kKqt3gMDcVfN8/4v2jqHrgLIe4qok4ApH5x4%3D' (2025-05-02) --- crates/api/src/lib.rs | 8 ++++---- crates/api/src/main.rs | 2 +- crates/db-context/src/lib.rs | 4 ++-- crates/fetcher/src/main.rs | 2 +- crates/store/src/lib.rs | 4 +++- flake.lock | 36 ++++++++++++++++++------------------ 6 files changed, 29 insertions(+), 27 deletions(-) diff --git a/crates/api/src/lib.rs b/crates/api/src/lib.rs index 7fd9476..8721d9d 100644 --- a/crates/api/src/lib.rs +++ b/crates/api/src/lib.rs @@ -2,14 +2,14 @@ use std::time::Duration; use poem::{ - endpoint::BoxEndpoint, middleware, web::Redirect, EndpointExt, FromRequest, Request, - RequestBody, Route, + EndpointExt, FromRequest, Request, RequestBody, Route, endpoint::BoxEndpoint, middleware, + web::Redirect, }; -use poem_openapi::{param, payload, ApiResponse, OpenApi, OpenApiService}; +use poem_openapi::{ApiResponse, OpenApi, OpenApiService, param, payload}; use serde::{Deserialize, Serialize}; use sqlx::{ - pool::{PoolConnection, PoolOptions}, Pool, Postgres, + pool::{PoolConnection, PoolOptions}, }; use pr_tracker_store::{ForPrError, Landing, PrNumberNonPositiveError}; diff --git a/crates/api/src/main.rs b/crates/api/src/main.rs index 04b81f2..2557c72 100644 --- a/crates/api/src/main.rs +++ b/crates/api/src/main.rs @@ -3,8 +3,8 @@ use anyhow::Context; use confique::Config; use poem::{ - listener::{Listener, TcpListener}, Server, + listener::{Listener, TcpListener}, }; use pr_tracker_api::endpoint; use pr_tracker_api_config::Environment; diff --git a/crates/db-context/src/lib.rs b/crates/db-context/src/lib.rs index 637b89b..cfd3fce 100644 --- a/crates/db-context/src/lib.rs +++ b/crates/db-context/src/lib.rs @@ -1,9 +1,9 @@ use fragile_child::{FragileChild, SpawnFragileChild}; use sqlx::{Connection, PgConnection, PgPool}; -use std::fs::{create_dir_all, OpenOptions}; +use std::fs::{OpenOptions, create_dir_all}; use std::os::unix::net::UnixDatagram; use std::{process::Command, time::Duration}; -use tempfile::{tempdir, TempDir}; +use tempfile::{TempDir, tempdir}; use camino::{Utf8Path, Utf8PathBuf}; diff --git a/crates/fetcher/src/main.rs b/crates/fetcher/src/main.rs index 6cb3402..10afa77 100644 --- a/crates/fetcher/src/main.rs +++ b/crates/fetcher/src/main.rs @@ -1,6 +1,6 @@ #![warn(clippy::pedantic)] -use anyhow::{ensure, Context}; +use anyhow::{Context, ensure}; use confique::Config; use pr_tracker_fetcher::{github::GitHubGraphqlClient, run}; use pr_tracker_fetcher_config::Environment; diff --git a/crates/store/src/lib.rs b/crates/store/src/lib.rs index edb7e17..071161f 100644 --- a/crates/store/src/lib.rs +++ b/crates/store/src/lib.rs @@ -450,7 +450,9 @@ impl Landing { let values = values.strip_suffix(',').expect("because non-empty"); - let batch = format!("INSERT INTO landings(github_pr, branch_id) VALUES {values} ON CONFLICT (github_pr, branch_id) DO NOTHING"); + let batch = format!( + "INSERT INTO landings(github_pr, branch_id) VALUES {values} ON CONFLICT (github_pr, branch_id) DO NOTHING" + ); sqlx::query(&batch).execute(connection).await?; diff --git a/flake.lock b/flake.lock index 58bfaea..a7bfbc0 100644 --- a/flake.lock +++ b/flake.lock @@ -121,11 +121,11 @@ ] }, "locked": { - "lastModified": 1742649964, - "narHash": "sha256-DwOTp7nvfi8mRfuL1escHDXabVXFGT1VlPD1JHrtrco=", + "lastModified": 1746537231, + "narHash": "sha256-Wb2xeSyOsCoTCTj7LOoD6cdKLEROyFAArnYoS+noCWo=", "owner": "cachix", "repo": "git-hooks.nix", - "rev": "dcf5072734cb576d2b0c59b2ac44f5050b5eac82", + "rev": "fa466640195d38ec97cf0493d6d6882bc4d14969", "type": "github" }, "original": { @@ -137,11 +137,11 @@ "github-graphql-schema": { "flake": false, "locked": { - "lastModified": 1745439920, - "narHash": "sha256-ZGrArf3/mGbaxGtMHb0nEJGMv+jT/LyzwzufLSOLg14=", + "lastModified": 1746607928, + "narHash": "sha256-aFW52fhkF91sLbzE010/JUdyk/ZNzp4rpTHFj6yrFUo=", "owner": "octokit", "repo": "graphql-schema", - "rev": "9b496a6254fc104be9c957e00a7f312d9006a03b", + "rev": "3b88e02665bbf85ce462a4e8e44c9595777f4a1b", "type": "github" }, "original": { @@ -204,11 +204,11 @@ ] }, "locked": { - "lastModified": 1745648139, - "narHash": "sha256-3K7u0SEmJTOzp1kKAngUIp9hgwafJCyjntFeXJQu6Pw=", + "lastModified": 1746857747, + "narHash": "sha256-LbqIsh+GWqRmuG1RD6qxOtggB/GtByRaryncjNb17Co=", "owner": "yusdacra", "repo": "nix-cargo-integration", - "rev": "3651a63811d1301e49b581cc0534f78319fcd0ca", + "rev": "dfe3569fb4863b415df6c110e3fa962fcd3d462c", "type": "github" }, "original": { @@ -219,11 +219,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1745377448, - "narHash": "sha256-jhZDfXVKdD7TSEGgzFJQvEEZ2K65UMiqW5YJ2aIqxMA=", + "lastModified": 1746576598, + "narHash": "sha256-FshoQvr6Aor5SnORVvh/ZdJ1Sa2U4ZrIMwKBX5k2wu0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "507b63021ada5fee621b6ca371c4fca9ca46f52c", + "rev": "b3582c75c7f21ce0b429898980eddbbf05c68e55", "type": "github" }, "original": { @@ -316,11 +316,11 @@ ] }, "locked": { - "lastModified": 1745634793, - "narHash": "sha256-8AuOyfLNlcbLy0AqERSNUUoDdY+3THZI7+9VrXUfGqg=", + "lastModified": 1746844454, + "narHash": "sha256-GcUWDQUDRYrD34ol90KGUpjbVcOfUNbv0s955jPecko=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "f1aeaeb91ba9c88f235ab82bd23d7a4931fe736c", + "rev": "be092436d4c0c303b654e4007453b69c0e33009e", "type": "github" }, "original": { @@ -390,11 +390,11 @@ ] }, "locked": { - "lastModified": 1744961264, - "narHash": "sha256-aRmUh0AMwcbdjJHnytg1e5h5ECcaWtIFQa6d9gI85AI=", + "lastModified": 1746216483, + "narHash": "sha256-4h3s1L/kKqt3gMDcVfN8/4v2jqHrgLIe4qok4ApH5x4=", "owner": "numtide", "repo": "treefmt-nix", - "rev": "8d404a69efe76146368885110f29a2ca3700bee6", + "rev": "29ec5026372e0dec56f890e50dbe4f45930320fd", "type": "github" }, "original": {