git-hooks.nix
git-hooks.nix copied to clipboard
`terraform-validate` doesn't work when modules are used.
It always errors with:
+ /nix/store/jyxapkyfpi53p30x9kg4aqj66195bj43-opentofu-1.8.4/bin/tofu validate examples/nix-store-path
╷
│ Error: Module not installed
│
│ on examples/nix-store-path/main.tf line 36:
│ 36: module "nixos_deploy_document" {
│
│ This module is not yet installed. Run "tofu init" to install all modules required by this configuration.
╵
+ read dir