ci: Show example nixfmt command prominently

This commit is contained in:
Robert Hensing
2025-01-15 06:51:53 +01:00
parent e6b98fad93
commit 3895dfe2cf
+2
View File
@@ -91,7 +91,9 @@ jobs:
if (( "${#unformattedFiles[@]}" > 0 )); then
echo "Some new/changed Nix files are not properly formatted"
echo "Please format them using the Nixpkgs-specific \`nixfmt\` by going to the Nixpkgs root directory, running \`nix-shell\`, then:"
echo
echo "nixfmt ${unformattedFiles[*]@Q}"
echo
echo "Make sure your branch is up to date with master, rebase if not."
echo "If you're having trouble, please ping @NixOS/nix-formatting"
exit 1