Closed damienleger closed 1 week ago
Try moving the terramate.tm.hcl file from /home/dleger/git/devsecops/terramate to the root directory, /home/dleger/git/devsecops.
If you recently added or modified files in your project, you'll need to track them with Git using git add before committing changes. However, this warning shouldn't prevent Terramate from functioning unless the untracked files are directly related to its configuration.
Thanks @rexprimer. I've did that during my tests and it's working (the terramate.tm.hcl is loaded), but that's look like a workaround and not a real solution for what I've tried to achieve: having all the terramate configuration in a subdirectory.
As for the Git tracking error, I've deactivated the check through disable_safeguards so this part is good.
Hi @damienleger
At the moment we require that some terramate
root config to be at the repository root but this won't be the case in the future. We plan to implement a "projects" feature, where multiple terramate projects can be defined in the same repo, similarly how you did by having a terramate
block with root config in it.
We are tracking this feature in this ticket: https://github.com/terramate-io/terramate/issues/466
So I'm gonna close this as duplicate. Please reopen if you believe this is not the case and more discussion is needed here!
Describe the bug I have a local copy of git repo in: /home/dleger/git/devsecops I put my terramate code in subdirectory: /home/dleger/git/devsecops/terramate
/home/dleger/git/devsecops/terramate has the following filetree (depth=1)
When I run
terramate run tofu plan
in /home/dleger/git/devsecops/terramate I have the following message:How can I make /home/dleger/git/devsecops/terramate project&root dir and make those errors disappear? I tried -C/-B flag without success.
To Reproduce
Mimic the file tree above
Expected behavior
A flag to configure project&root dir
Log Output
On describe the bug section
Environment (please complete the following information): Ubuntu Server 24.04, terramate 0.9.0
Additional context
n/a