From 6a014c6eb3928a6cd4fae89973d40f6a12b30995 Mon Sep 17 00:00:00 2001 From: FUFSoB Date: Sat, 26 Sep 2026 23:11:29 +0500 Subject: [PATCH] fix: depends action failed at nixfmt --- .github/workflows/dependency-updates.yml | 8 +++++++- nix/checks/per-app-routing-zapret.nix | 16 +++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml index f55552f..345f10d 100644 --- a/.github/workflows/dependency-updates.yml +++ b/.github/workflows/dependency-updates.yml @@ -52,6 +52,11 @@ jobs: scripts/update-pins.sh --self-test scripts/update-pins.sh | tee "$RUNNER_TEMP/pin-updates.txt" + # A nixpkgs bump can bring a nixfmt whose style differs; restyle the tree with + # it so the nix-format check passes and the restyle rides along in the PR. + - name: Reformat Nix files + run: nix fmt + - name: Detect dependency file changes id: changes run: | @@ -95,7 +100,7 @@ jobs: echo "- zapret: refreshed every run" echo echo '```' - git diff --stat -- flake.lock pkgs + git diff --stat echo '```' } > "$RUNNER_TEMP/pr-body.md" cat "$RUNNER_TEMP/pr-body.md" >> "$GITHUB_STEP_SUMMARY" @@ -109,6 +114,7 @@ jobs: add-paths: | flake.lock pkgs + *.nix commit-message: "chore(deps): refresh flake inputs and pinned sources" title: "chore(deps): refresh flake inputs and pinned sources" body-path: ${{ runner.temp }}/pr-body.md diff --git a/nix/checks/per-app-routing-zapret.nix b/nix/checks/per-app-routing-zapret.nix index cb0dd63..00710f6 100644 --- a/nix/checks/per-app-routing-zapret.nix +++ b/nix/checks/per-app-routing-zapret.nix @@ -188,15 +188,13 @@ in # -- perAppRouting: app zapret can run without the global zapret service -- ( - assert - perAppRoutingZapretWithoutGlobalFixture.config.systemd.services ? "proxy-suite-per-app-zapret"; - assert - perAppRoutingZapretWithoutGlobalFixture.config.systemd.services - ? "proxy-suite-per-app-zapret-user@"; - assert - perAppRoutingZapretWithoutGlobalFixture.config.systemd.user.services - ? "proxy-suite-per-app-zapret-anchor"; - assert !(perAppRoutingZapretWithoutGlobalFixture.config.systemd.services ? "proxy-suite-zapret"); + let + inherit (perAppRoutingZapretWithoutGlobalFixture.config) systemd; + in + assert systemd.services ? "proxy-suite-per-app-zapret"; + assert systemd.services ? "proxy-suite-per-app-zapret-user@"; + assert systemd.user.services ? "proxy-suite-per-app-zapret-anchor"; + assert !(systemd.services ? "proxy-suite-zapret"); assert builtins.length perAppRoutingZapretWithoutGlobalProfiles == 2; assert builtins.any ( profile: profile.name == "zapret" && profile.route == "zapret"