devops-infra/action-format-hcl

Error trying to lint one hcl file

Opened this issue · 3 comments

Hi there,

I am getting an error once I try to lint only one .hcl file. According to the error looks like the recursive flag is enabled once a single file is passed in the dir parameter. Can you add support to lint only one .hcl file?

image

Thanks,

I'll have a look at it. Thank you for reporting.

Hello @ChristophShyper,

Hope you are doing great, I am sending a following up, I really need this feature, please help me.

Thanks

@jevalenciap Sorry for not responding earlier, I'm swamped with different work right now.
From what I see you provide a file path for dir, not a directory, that's why terraform is failing, since it's expecting a directory.
Have you tried replacing the value with .../TMAsecret?