I'm working to add tfsec, which stores its config ...
# plugins
c
I'm working to add tfsec, which stores its config at
.tfsec/config.yml
by default. I can't config discover it because the dir is ignored by Pants by default (
".*/"
). What's a good way of resolving this? Users will expect their config to work the same as it had before, which will require modifying the
pants_ignore
. Is the best option to just put a note at the top of the documentation for the subsystem to do that?
w
Are you sure that’s the underlying problem? A lot of backends use dotfiles for their config (e.g. the mypy backend)
Ah, a dot-directory, with the config file inside? I misread that as
.tfsec.config.yml
c
Is there a exclude-ignore syntax, like
!.tfsec/
we could add to pants default ignore?
c
Yeah,
!.tfsec/
works, and we can add that to the default pants ignores. I'm wondering if that's something we'd want to do. If this were developed as an external/3rdparty plugin, we wouldn't be able to do that. And it seems weird that we would add this to everyone, even if they aren't using the tfsec backend. But maybe it's the best option at the moment.
c
for now, yes maybe? long term, to address this from a third party plugin perspective perhaps the default ignores needs to be configurable..?