Replies: 1 comment 4 replies
-
|
Hi @moatorres We did plan to add Sorry for the late reply... |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm wondering if there's any workaround to list stacks within hidden directories (e.g.
.foo/stacks/...). I'm assuming thatterramatefollows unix-like behaviour, where:https://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory
From the docs:
https://terramate.io/docs/cli/reference/configuration/#configuration-files
At first I thought that
terramatewas ignoring directories listed on.gitignoreor had its own.tmignorefile where we could list directories/files that should be ignored and, more importantly, list directories that should not be ignored (e.g.!.foo/) during traversals.As an example, in the following structure the
stack-awill not be picked up. However, even thoughdistis being ignored by Git,stack-bwill be picked up.# .gitignore dist node_modules.foo/ └── stacks/ └── stack-a/ ├── .terraform/ ├── cdk.tf.json └── stack.tm.hcl <-- will not be picked up dist/ └── stacks/ └── stack-b/ ├── .terraform/ ├── cdk.tf.json └── stack.tm.hcl <-- will be picked upAlthough the behaviour of not ignoring directories listed on
.gitignorelooks slightly unconventional to me, I'm mostly interested on listing stacks within hidden directories. I've tried to use theimportblock on a root-levelteramate.tm.hclfile to forcestack-ato be picked up, but unfortunately stacks can't be imported as source. 😞I'd be happy to open a pull-request to add support for
.tmignorefiles or a mechanism that would allow us to maketerramateaware of stacks within hidden directories, if anyone finds it useful. Meanwhile, any known workaround would be very welcome.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions