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
-
Hello,
I'm wondering if there's any workaround to list stacks within hidden directories (e.g.
.foo/stacks/...
). I'm assuming thatterramate
follows 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
terramate
was ignoring directories listed on.gitignore
or had its own.tmignore
file 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-a
will not be picked up. However, even thoughdist
is being ignored by Git,stack-b
will be picked up.# .gitignore dist node_modules
Although the behaviour of not ignoring directories listed on
.gitignore
looks slightly unconventional to me, I'm mostly interested on listing stacks within hidden directories. I've tried to use theimport
block on a root-levelteramate.tm.hcl
file to forcestack-a
to 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
.tmignore
files or a mechanism that would allow us to maketerramate
aware 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