From 249d4a97d51c33b94fb2653c3bfd2659d45f9889 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Tue, 27 Aug 2024 00:32:49 +0200 Subject: [PATCH] workflows/check-nix-format: Improve error message Looks like the error message could be a bit clearer still: https://github.com/NixOS/nixpkgs/pull/337109#issuecomment-2311175326 --- .github/workflows/check-nix-format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-nix-format.yml b/.github/workflows/check-nix-format.yml index 22ad83ba953ba..854d3eaf45fe1 100644 --- a/.github/workflows/check-nix-format.yml +++ b/.github/workflows/check-nix-format.yml @@ -83,7 +83,7 @@ jobs: if (( "${#unformattedFiles[@]}" > 0 )); then echo "Some new/changed Nix files are not properly formatted" - echo "Please go to the Nixpkgs root directory, run \`nix-shell\`, then:" + echo "Please format them using the Nixpkgs-specific \`nixfmt\` by going to the Nixpkgs root directory, running \`nix-shell\`, then:" echo "nixfmt ${unformattedFiles[*]@Q}" echo "If you're having trouble, please ping @NixOS/nix-formatting" exit 1