Skip to content

Commit 1b1f1b4

Browse files
committed
Modify hook to show diff
1 parent cb00b76 commit 1b1f1b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/hooks.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,7 +2777,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
27772777
name = "opentofu-format";
27782778
description = "Format OpenTofu (`.tf`) files.";
27792779
package = tools.opentofu;
2780-
entry = "${hooks.opentofu-format.package}/bin/tofu fmt --check";
2780+
entry = "${hooks.opentofu-format.package}/bin/tofu fmt -check -diff";
27812781
files = "\\.tf$";
27822782
};
27832783
ormolu =
@@ -3235,7 +3235,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
32353235
name = "terraform-format";
32363236
description = "Format Terraform (`.tf`) files.";
32373237
package = tools.terraform;
3238-
entry = "${hooks.terraform-format.package}/bin/terraform fmt --check";
3238+
entry = "${hooks.terraform-format.package}/bin/terraform fmt -check -diff";
32393239
files = "\\.tf$";
32403240
};
32413241
tflint =

0 commit comments

Comments
 (0)