terramate-io / terramate

Terramate CLI is an open-source Infrastructure as Code (IaC) Orchestration and Code Generation tool for Terraform, OpenTofu and Terragrunt.
https://terramate.io
Mozilla Public License 2.0
3.24k stars 91 forks source link

[BUG] generating inside dot directories is disallowed #1657

Open waxb opened 5 months ago

waxb commented 5 months ago

Describe the bug I am generating the GitHub Actions workflow files via terramate inside .github/workflows/. Upon upgrading to >= v0.6.0 this became undoable.

generate_file ".github/workflows/deploy.yaml" {
  stack_filter {
    project_paths = [
      "/"
    ]
  }
  ...
 }

output:

error:  invalid generate block label: .github/workflows/deploy.yaml: generation inside dot directories are disallowed

Moving the stack and stack filter from / to .github/workflows produces the same behaviour.