Closed delroth closed 11 months ago
No judgement, but is there a reason you chose an action over running terraform fmt -check -recursive ./terraform{,-iam}
from inside the devshell?
One is 4 lines of YAML, the other is more than 4 lines of YAML and more than I cared about looking up how to get working :)
As mentioned, I think running "terraform fmt" from the devshell is better, feel free to supersede this PR if you want to spend the 15min figuring out how to get that done.
(Note: it probably needs to be two separate devshells for terraform and terraform-iam, since the current setup has two separate flakes for those two. But that should probably be fixed at some point too...)
I'm sure we'll revisit that later, but it's going in the right direction
Attempt at preventing spurious diffs when people like me don't know or forget that
terraform fmt
is a thing :-)Not technically perfect since it's not using the
terraform
version from nixpkgs or theflake.lock
, but likely good enough. If it causes problems, we can fix it later.