fix: depends action failed at nixfmt

This commit is contained in:
FUFSoB committed 2026-09-26 23:11:29 +05:00
1 parent b91994e150
commit 6a014c6eb3
2 files changed
+14 -10

No files matched your search

+7 -1
View File
@@ -52,6 +52,11 @@ jobs:
scripts/update-pins.sh --self-test scripts/update-pins.sh --self-test
scripts/update-pins.sh | tee "$RUNNER_TEMP/pin-updates.txt" 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 - name: Detect dependency file changes
id: changes id: changes
run: | run: |
@@ -95,7 +100,7 @@ jobs:
echo "- zapret: refreshed every run" echo "- zapret: refreshed every run"
echo echo
echo '```' echo '```'
git diff --stat -- flake.lock pkgs git diff --stat
echo '```' echo '```'
} > "$RUNNER_TEMP/pr-body.md" } > "$RUNNER_TEMP/pr-body.md"
cat "$RUNNER_TEMP/pr-body.md" >> "$GITHUB_STEP_SUMMARY" cat "$RUNNER_TEMP/pr-body.md" >> "$GITHUB_STEP_SUMMARY"
@@ -109,6 +114,7 @@ jobs:
add-paths: | add-paths: |
flake.lock flake.lock
pkgs pkgs
*.nix
commit-message: "chore(deps): refresh flake inputs and pinned sources" commit-message: "chore(deps): refresh flake inputs and pinned sources"
title: "chore(deps): refresh flake inputs and pinned sources" title: "chore(deps): refresh flake inputs and pinned sources"
body-path: ${{ runner.temp }}/pr-body.md body-path: ${{ runner.temp }}/pr-body.md
+7 -9
View File
@@ -188,15 +188,13 @@ in
# -- perAppRouting: app zapret can run without the global zapret service -- # -- perAppRouting: app zapret can run without the global zapret service --
( (
assert let
perAppRoutingZapretWithoutGlobalFixture.config.systemd.services ? "proxy-suite-per-app-zapret"; inherit (perAppRoutingZapretWithoutGlobalFixture.config) systemd;
assert in
perAppRoutingZapretWithoutGlobalFixture.config.systemd.services assert systemd.services ? "proxy-suite-per-app-zapret";
? "proxy-suite-per-app-zapret-user@"; assert systemd.services ? "proxy-suite-per-app-zapret-user@";
assert assert systemd.user.services ? "proxy-suite-per-app-zapret-anchor";
perAppRoutingZapretWithoutGlobalFixture.config.systemd.user.services assert !(systemd.services ? "proxy-suite-zapret");
? "proxy-suite-per-app-zapret-anchor";
assert !(perAppRoutingZapretWithoutGlobalFixture.config.systemd.services ? "proxy-suite-zapret");
assert builtins.length perAppRoutingZapretWithoutGlobalProfiles == 2; assert builtins.length perAppRoutingZapretWithoutGlobalProfiles == 2;
assert builtins.any ( assert builtins.any (
profile: profile.name == "zapret" && profile.route == "zapret" profile: profile.name == "zapret" && profile.route == "zapret"