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.12k stars 86 forks source link

[BUG] Cloning does not consider files located outside of stacks #1725

Open soerenmartius opened 1 month ago

soerenmartius commented 1 month ago

Describe the bug Cloning multiple stacks starting at a root directory does not copy the config.tm.hcl located at the base, which is not part of a stack. I would expect that all files in the defined folder are cloned, regardless if it is a stack or not.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new directory dev
  2. Add a file config.tm.hcl inside of dev
  3. Add a stack in dev ,terramate create dev/one
  4. Clone the dev directory: terramate experimental clone dev foo

Expected behavior The config.tm.hcl should be cloned.

Log Output Add logs from Terramate to help debug your problem.

Environment (please complete the following information):