From dbe023fdf6ffafe8d165c8c4e37ac2f23a926cd7 Mon Sep 17 00:00:00 2001 From: Andy Brody Date: Wed, 25 Mar 2026 16:01:18 -0400 Subject: [PATCH] Add .tofu/.tofutest.hcl to tofu fmt error message. (#3947) Signed-off-by: Andy Brody --- internal/command/fmt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/fmt.go b/internal/command/fmt.go index 5451f323e8..3b1320c9b4 100644 --- a/internal/command/fmt.go +++ b/internal/command/fmt.go @@ -160,7 +160,7 @@ func (c *FmtCommand) fmt(paths []string, stdin io.Reader, stdout io.Writer, args } if !fmtd { - diags = diags.Append(fmt.Errorf("Only .tf, .tfvars, and .tftest.hcl files can be processed with tofu fmt")) + diags = diags.Append(fmt.Errorf("Only .tf, .tofu, .tfvars, .tftest.hcl, and .tofutest.hcl files can be processed with tofu fmt")) continue } }